javascript while loop in html code example Example: javascript while loop while(condition) { //whatever }