while.js 369 B

123456789101112131415161718192021222324252627282930313233343536
  1. /** While loops */
  2. while (condition)
  3. inLoop();
  4. while (condition)
  5. inLoop();
  6. after();
  7. while (mycondition) {
  8. sdfsdfg();
  9. }
  10. while (mycondition)
  11. {
  12. sdfsdfg();
  13. }
  14. while (mycond)
  15. if (more)
  16. doit;
  17. after();
  18. while (mycond) if (more)
  19. doit;
  20. after();
  21. while (mycondition) {
  22. sdfsdfg();
  23. if (test) {
  24. more()
  25. }}
  26. while (mycondition)
  27. if (test) {
  28. more()
  29. }