Loops and iteration - JavaScript | MDN

PHOTO EMBED

Wed May 27 2020 01:44:35 GMT+0000 (Coordinated Universal Time)

Saved by @bob #javascript

for (let step = 0; step < 5; step++) {
  // Runs 5 times, with values of step 0 through 4.
  console.log('Walking east one step');
}
content_copyCOPY

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration