Manipulate Arrays ( unshift)

Tell us what’s happening:
I did manipulate Arrays with unshift, But i am getting same output which is shown in compilation then still I am facing problem.
i have attached picture pls find.

Your code so far

// Example
var ourArray = ["Stimpson", "J", "cat"];
ourArray.shift(); // ourArray now equals ["J", "cat"]
ourArray.unshift("Happy"); 
// ourArray now equals ["Happy", "J", "cat"]

// Setup
var myArray = [["John", 23], ["dog", 3]];
myArray.shift();
myArray.unshift(["paul", 35]);

ice_screenshot_20170915-120027ice_screenshot_20170915-120027

1 Like

I can’t see the image, but I think the only problem is that you haven’t capitalized the first letter of the name of paul.

2 Likes

S your correct, I have done.