Manipulate Arrays With unshift -cb

Manipulate Arrays With unshift -cb
0.0 0

#1

can anyone tell me whats went wrong here?

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();

// Only change code below this line.
myArray.unshift(["paul" ,35]);


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:


#2

What are the problems you are encountering with your code?


#3

i solved the problem myself.
i stupidly made mess on uppercase and lowercase of “Paul”
thanks anyway


#4

I had a feeling it was something like that. It happens all the time :smiley: