Home

JavaScript While Loop

javascript
let n = 0;

while (n < 3) {
  n++;
}

console.log(n);

via: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while

~ fin ~