Issue with un shift in array

I have no idea what I did wrong, I even watched the video on FCC and his code matched mine exactly.


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

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13904.66.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36

Challenge: Manipulate Arrays With unshift()

Link to the challenge:

I’ll give you a big hint - capitalization. You made one letter a lowercase that should be uppercase.

3 Likes

its always capitalization…

1 Like

Yeah, it’s bitten me in the ass a few times. I’m sure we’re not the only ones.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.