how to use the while loop in javascript print 1 signs code example Example: javascript while loop while(condition) { //whatever }