Basic JavaScript - Manipulate Arrays With unshift Method Hey anyone pls help me out in this

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

Your code so far

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

// Only change code below this line
myArray.unshift(["paul", 35]);

Your browser information:

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

Challenge: Basic JavaScript - Manipulate Arrays With unshift Method

Link to the challenge:

Check your capitalization with the name you are adding

i didn’t get it pls help

The directions say
Add ["Paul", 35]

you are adding

[“paul”, 35]

theres a difference in the capitalization

const myArray = [[“John”, 23], [“dog”, 3]];
const deletedResult= myArray.shift();
const add = myArray.unshift([‘Rayhan’,24])
console.log(myArray);
console.log(deletedResult)
console.log(add)

// --------
[ [ ‘Rayhan’, 24 ], [ ‘dog’, 3 ] ]
[ ‘John’, 23 ]
2

thanks sir can we connect on linkedIn ?

tell me bro can we connect on linkedIn??

It’s a little impolite to pester people into following you on LinkedIn.

what do you mean i didn’t get you?

Repeatedly asking someone to ‘connect on linkedIn’ is rude.

oh sorry for that i thought you havn’t seen my message sorry if it hurts you

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