how to use while loop in jquery game code example Example: do while javascript do { //whatever } while (conditional);