JavaScript While Loop

December - 2020
let n = 0;

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

console.log(n);

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