S2
jS
Learn
Create Your Own
Split Screen
Go to Live Site
Next Page
You can also use
break with while-loops
.
while
(number_of_defenders > 0) { update_the_background(); update_the_hero();
if (game_over) break
; adjust_scores();
if (apocalypse) break;
}