Manipulate Arrays With pop() Can't run the text

Tell us what’s happening:
…I am not able to run the text may i know the where the problem is?..

Your code so far

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0.

Challenge: Manipulate Arrays With pop()

Link to the challenge:

what do the tests say?

…Is not responding at all…

reload the page and try again

Hello @matey1979,

You got the error because the the array myArray has been modified.

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

Add a comma after the string “cat” an try again.

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


1 Like

,@ thinkingape46 thanks it working now
am very greatful.

1 Like

didn’t you see an error like this?

…Yes but working now appreciate