Basic JavaScript - Manipulate Arrays With unshift()

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

Your code so far
please i need help on how to add element to an array

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

// 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/106.0.5249.168 Safari/537.36

Challenge: Basic JavaScript - Manipulate Arrays With unshift()

Link to the challenge:

Double check your string here - it needs to exactly match “Paul”

i have checked over again and its exactly the same

No, it is not exactly the same. The capitalization doesn’t quite match.

thanks you are right, i have corrected it and it worked

1 Like

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