while loop in javascript if condition not true code example Example: while loops js while (10 > 1) { console.log("HI"); }