Manipulate Arrays ( unshift)

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 now equals ["Happy", "J", "cat"]

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



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.


S your correct, I have done.