Basic JavaScript - Manipulate Arrays With pop Method

it shows your code is wrong
is anyone help me out…?

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

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

console.log(removeFromMyArray);
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/111.0.0.0 Safari/537.36

Challenge: {{challengeTitle}} Basic JavaScript - Manipulate Arrays With pop Method

Link to the challenge:

1 Like

Welcome there,

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code. The more you say, the more we can help.

Watch out, there is a typo on remove (which is incorrect) while removed (is correct). Typos like this make you eat your senses unnecessarily :wink:

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