Basic JavaScript - Manipulate Arrays With unshift Method

Tell us what’s happening:

Describe your issue in detail here.

Your code so far


const myArray = [["John", 23], ["dog", 3]];
myArray.shift()
myArray.unshift(["paul", 35]);

I am using this snippet the code is right but not completed the pages. it means when i submit the code. it not sumbitting and say myArray should now have [[“Paul”, 35], [“dog”, 3]].

Your browser information:

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

Challenge Information:

Basic JavaScript - Manipulate Arrays With unshift Method

Check your capitalization

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