scrimba
Learn Basic JavaScript
Manipulate Arrays With push()
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 push()
AboutCommentsNotes
Manipulate Arrays With push()
Expand for more info
index.js
run
preview
console
// Example
var ourArray = ["Stimpson", "J", "cat"];
ourArray.push(["happy", "joy"]);
// ourArray now equals ["Stimpson", "J", "cat", ["happy", "joy"]]

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

// Only change code below this line.

Console
index.html
-0:55