หรือเมื่ออยากเน้น “ทำจนกว่าเงื่อนไขจะเท็จ”
let n = 3; while (n > 0) { console.log(n); n = n - 1; } console.log("หมด");
3 2 1 หมด