Unshift challenge

whhy is this code not passiing??

Your code so far


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

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0

Challenge: Manipulate Arrays With unshift()

Link to the challenge:

First names are usually capitalized.

1 Like