iterate by 2 steps in javascript code example
Example 1: javascript how to increment by other than one in for loop
for (var i = 0; i < myVar.length; i += 3) {
Example 2: forloop in js
for(i = 0; i < x; ++i){
//Loop, x can be replaced with any integer;
}