scrimba
Learn Basic JavaScript
Iterate with JavaScript For Loops
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

Iterate with JavaScript For Loops
AboutCommentsNotes
Iterate with JavaScript For Loops
Expand for more info
index.js
run
preview
console
// Example
var ourArray = [];

for (var i = 0; i < 5; i++) {
ourArray.push(i);
}

// Setup
var myArray = [];

// Only change code below this line.

Console
[
0
,
1
,
2
,
3
,
4
]
,
index.html
-2:16