Basic JavaScript - Manipulate Arrays With unshift Method

Tell us what’s happening:
Describe your issue in detail here.
don’t know why this is incorrect
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 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Manipulate Arrays With unshift Method

Link to the challenge:

MOD EDIT: Solution removed.

Add ["Paul", 35] to the beginning of the myArray variable using unshift() .

You are not adding exactly what is specified in the instructions.

MOD EDIT: Solution removed.

Please do not post solutions. We are here to offer guidance to enable others to find solutions for themselves and to learn in the process.

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