Manipulate Arrays with pop() error

I’ve tested the code and it gives the result it’s looking for. I’ve used exactly the method it implies. I’ve even copied and pasted the solution from the help section and still told that I should use the pop function and assign the the new var.

Is this a system bug or am I missing something?

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

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

Your code so far


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

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:98.0) Gecko/20100101 Firefox/98.0

Challenge: Manipulate Arrays With pop()

Link to the challenge:

Make sure the spelling is correct

2 Likes