scrimba
Learn Basic JavaScript
Manipulate Arrays With pop()
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Manipulate Arrays With pop()
AboutCommentsNotes
Manipulate Arrays With pop()
Expand for more info
index.js
run
preview
console
// Example
var ourArray = [1,2,3];
var removedFromOurArray = ourArray.pop();
// removedFromOurArray now equals 3, and ourArray now equals [1,2]

// Setup
var myArray = [["John", 23], ["cat", 2]];

// Only change code below this line.
var removedFromMyArray;

Console
index.html
-1:01