at Code Fellows 102 class session
WHAT DOES EVERY COMPUTER DO?
3 TYPES OF LOOPS:
do {your code goes here;} while (i<1);Loops keywords:
- break - will terminate the loop and go to the next statement of code outside the loop;
- continue - tells the interpreter to continue with the current iteration, and then checks the condition again (if it’s true, the code will run again).
* if the condition never returns false - you’ll get the infinite loop.