.pop task at FreeCodeCamp, Can`t beat it for 2 hours

Tell us what’s happening:
Someone, pls tell me what am I doing wrong, Ive done 1/1 how it was on the tutorial, but it doesnt work. Sanks for your help.

Your code so far

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

// Only change code below this line
const removeFromMyArray = myArray.pop();

console.log (myArray);



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 AlohaBrowser/0.5.10.0 Safari/537.36

Challenge: Manipulate Arrays With pop()

Link to the challenge:

Compare with the name removedFromMyArray. You have a small typo.

Haha, thank you very much, it really helped. Have a good afternoon.

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