Manipulate Arrays With pop()2

Tell us what’s happening:

I did eveything the video said but the console still says I am wrong…why?
Your code so far
// Only change code below this line

var removedFrommyArray = myArray.pop();

console.log(myArray);


// Setup
var myArray = [["John", 23], ["cat", 2]];

// Only change code below this line
var removedFrommyArray = myArray.pop();

console.log(myArray);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36.

Challenge: Manipulate Arrays With pop()

Link to the challenge:

Hi @asarathy!

There is a typo. Try not to change the variable name.

1 Like