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