while loop

Run Settings
LanguageJavaScript
Language Version
Run Command
x =1; while (x < 10) { console.log(++x); if (x == 5) { break; // leave the while loop } if (x == 3) { continue; //go to top (while) } console.log("while loop run,", x);} console.log("separate") x =1; while (x < 10) { console.log(++x); if (x == 5) { break; // leave the while loop } if (x == 3) { continue; //go to top (while) }} console.log("while loop run,", x);
Editor Settings
Theme
Key bindings
Full width
Lines