scrimba
Learn Basic JavaScript
Iterate Odd Numbers 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

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

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

console.log(ourArray);

// Setup
var myArray = [];

// Only change code below this line.

Console
index.html
-1:28