scrimba
Learn Basic JavaScript
Count Backwards With a For Loop
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

Count Backwards With a For Loop
AboutCommentsNotes
Count Backwards With a For Loop
Expand for more info
index.js
run
preview
console
// Example
var ourArray = [];

for (var i = 10; i > 0; i -= 2) {
ourArray.push(i);
}

console.log(ourArray);

// Setup
var myArray = [];

// Only change code below this line.

Console
index.html
-1:38