loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Example
var ourArray = [];

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

// Setup
var myArray = [];
for (var i = 1; i <= 9; i +=2) {myArray.push(i);}
console.log(myArray, " with <=");

myArray = [];
for (var i = 1; i < 9; i +=2) {myArray.push(i);}
console.log(myArray, " with <");
Native Browser JavaScript