Basic JavaScript - Manipulate Arrays With unshift Method

// Setup
const myArray = [["John", 23], ["dog", 3]];

// Only change code below this line


that was my answer, the console.log() return the expected result but the code still not working
Can somebody explain me please

When you would like help from the forum, it would be much better to include a direct link to the challenge so we don’t have to go hunting for it. Also, if you want to post code, please put in inside backticks. You can do this by clicking the </> icon (or CTRL+e) and pasting your code where indicated.

You were asked to add ["Paul", 35] to the array. You’ve added something different.

I get my mistake, unless to make a capital P a make p. Thank you

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

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