while loop with condition js code example Example: while loops js while (10 > 1) { console.log("HI"); }