Manipulate array with unshift()

Hi,
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.shift();  
myArray.ushift(["Paul" , 35]);

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

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

1 Like

Thanks Kevin. I really appreciate it.

1 Like