Tell us what’s happening:
Can anybody tell me what I’ve done wrong?
Your code so far
// Setup
var myArray = [["John", 23], ["dog", 3]];
myArray.shift();
// Only change code below this line
myArray[0] = myArray.unshift(["Paul", 35])
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 9; LM-X420) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36
.
Challenge: Manipulate Arrays With unshift()
Link to the challenge: