while function equal true javascript code example Example: javascript while loop while(condition) { //whatever }