Problem in Manipulate Arrays With unshift

Problem in Manipulate Arrays With unshift
0.0 0

#1

Tell us what’s happening:

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", 35], ["dog", 3]];
myArray.shift();
myArray.unshift("Paul",35);
// Only change code below this line.


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.

Link to the challenge:


#2

in your unshift you are passing two arguments, a string and a number. Looking at the format of the array, there is a way of unshifting them both together as one unit.