Basic JavaScript - Manipulate Arrays With pop()

Resolved: I had the wrong spelling in the variable: removeFromMyArray which should’ve been removedFromMyArray

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
const removeFromMyArray = myArray.pop();

/* These clg's only exist to work out what I'm actually doing wrong however they do meet the tasks criteria, why does the task disallow it? */
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/103.0.5060.114 Safari/537.36 OPR/89.0.4447.64

Challenge: Basic JavaScript - Manipulate Arrays With pop()

Link to the challenge:

check the removedFromMyArray variable, which is the one you should be using in this challenge

1 Like

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