DEV Community

KoichiArai
KoichiArai

Posted on

Day6 of 100DaysOfJavaScript

Lately there are many sudden rain...

What I did

What I learned

  • Nested arrays
  • for and while loop
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
}

Enter fullscreen mode Exit fullscreen mode
  • nested for loop I have frequently used this when I conducted graduation study.
  • Random (Math.random, Math.floor)

Top comments (0)