while script is running js code example Example: javascript while loop while(condition) { //whatever }