I cannot seem to accurately pop this array, need help

Tell us what’s happening:
Describe your issue in detail here.
I keep getting this error :
You should use pop() on myArray.
removedFromMyArray should only contain [“cat”, 2].

Your code so far


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

// Only change code below this line

var removeFromMyArray = myArray.pop();

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; Infinix X650D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Mobile Safari/537.36

Challenge: Manipulate Arrays With pop()

Link to the challenge:

You have a spelling error in your variable name - the test is looking for the spelling that was asked for.

1 Like

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