if else in a do while javascript code example Example: do while javascript do { //whatever } while (conditional);