I have apllied the unshift button yet i am not passing the challenge

i have applied the unshift button yet i am not passing the challenge,what exactly is wrong on my code

Your code so far


// Setup
var 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Edg/92.0.902.73

Challenge: Manipulate Arrays With unshift()

Link to the challenge:

Check the order of your parentheses and square brackets. Remember, shift is a function.

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