Salut j'aurai besoin de votre aide svp...je ne comprend pas ce qui ne vas pas dans le code on me demande d'ecrire ["paul",35]

Tell us what’s happening:

Your code so far


// Setup
var myArray = [["John", 23], ["dog", 3]];
myArray.shift();
myArray.unshift(["paul", 35]);
console.log(myArray);

// 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/86.0.4240.183 Safari/537.36.

Challenge: Manipulate Arrays With unshift()

Link to the challenge:

Hi @wydi!

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

//Move this code
myArray.unshift(["paul", 35]);
console.log(myArray);

// Only change code below this line

//correct code goes here

There is a small typo in your answer

//wrong
["paul"]
//right
["Paul"]
1 Like

Salut merci bcp pour ton aide🙂

1 Like