Basic JavaScript: Manipulate Arrays With unshift()

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

// Only change code below this line.
myArray.unshift( ["Paul",35]);

Leave a Reply

Your email address will not be published. Required fields are marked *