Basic JavaScript - Manipulate Arrays With unshift Method

Tell us what’s happening:

Describe your issue in detail here.
here i m using unshift method to add an array but its not working…help me please

Your code so far

// Setup
const myArray = [["John", 23], ["dog", 3]];
myArray.shift();

// Only change code below this line

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

In the code you posted you aren’t, can you post the code where you’re using unshift?

1 Like

thq for replying…just got solved…sorry for wasting ur time

1 Like

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