Basic JavaScript - Manipulate Arrays With pop()

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

Your code so far

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

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

Your browser information:

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

Challenge: Basic JavaScript - Manipulate Arrays With pop()

Link to the challenge:

hi there, what is your question?

// running tests


should only contain

[["John", 23]]



should only contain

["cat", 2]

. // tests completed // console output ReferenceError: a is not defined

this a character is probably the reason you have a reference error in the console

Yes but if you see my code I don’t have an a there.

the a is there on the left of the //Setup in the code you showed us.
Do you have more recent code? Show it to us.

Thank you now I saw it!

1 Like

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