4 points

Loops and iteration - JavaScript | MDN


dashboard

Wed May 27 2020 01:44:35 GMT+0000 (UTC)

Posted 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_copy Copy

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