let n = 0; while (n < 3) { n++; } console.log(n); // Expected output: 3
JavaScript Demo: Statement - While
Run ›
Reset