Manipulate Arrays With shift

Manipulate Arrays With shift
0

#1

Tell us what’s happening:

Your code so far

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

// Setup
var myArray = [["John", 23], ["dog", 3]];

// Only change code below this line.
var removedFromMyArray = myArray .shift();


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0.

Link to the challenge:


#2

There is an extra space between myArray and .shift().

In the future, it could be great if you could describe what you have tried—it helps both yourself and the people trying to help you.


#3

I’m having the same issue.