Basic JavaScript - Manipulate Arrays With pop Method

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

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

Your browser information:

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

Challenge: Basic JavaScript - Manipulate Arrays With pop Method

Link to the challenge:

I didn’t understand this challenge actually. Can anyone explain this to me?

.pop() removes the last element from an array and returns that element.”

Do you understand what this means?

actually I didn’t understand this tutorial at all Sir.

also how should I complete this tutorial…

Bro your variable removedFromMyArray equals to your pop out value.

I understood how to pass that level. Thank you for your help

1 Like

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