Tell us what’s happening:
Describe your issue in detail here.
// Setup
var myArray = [[“John”, 23], [“dog”, 3]];
var removedFromArray = myArray.shift();
Your code so far
// Setup
var myArray = [["John", 23], ["dog", 3]];
var removedFromArray = myArray.shift();
console.log(myArray);
console.log(removedFromArray);
// Only change code below this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Manipulate Arrays With shift()
Link to the challenge: