while loop in string javascript code example Example: do while javascript do { //whatever } while (conditional);