Manipulate array with unshift()

I tried to work this exercise and follow all the procedures but I can get to the result. Below is my code;

const myArray = [["John", 23], ["dog", 3]]; 
myArray.ushift(["Paul" , 35]);

Then I got:
TypeError: myArray.ushift is not a function
Is anyone can help why it didn’t work?

1 Like

“ushift” is not a method, check your spelling.

1 Like

Thanks Kevin. I really appreciate it.

1 Like

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