Lately there are many sudden rain...
for (var i = 0; i < 10; i += 2) { console.log(i); // 2, 4, 6, 8 } for (var i = 10; i > 0; i -= 2 ) { console.log(i); // 8, 6, 4, 2 }
The above is the detailed content of Dayf DaysOfJavaScript. For more information, please follow other related articles on the PHP Chinese website!