How Manipulate Arrays With unshift

Tell us what’s happening:

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]];

// Only change code below this line.


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0.

Link to the challenge:

You have a typo in the first element of the array you are trying to add. Remember that JavaScript is case sensitive. Look at the instructions again and verify the capitalization of the first array element.

1 Like

@RandellDawson yeah.
Thanks you :slight_smile: