LEO'S LEARNING JOURNAL

at Code Fellows 102 class session


Project maintained by LeoKuhorev Hosted on GitHub Pages — Theme by mattgraham

Day 05 “COMPUTER LOGIC AND LOOPS”

WHAT DOES EVERY COMPUTER DO?

3 TYPES OF LOOPS:

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.

Go back to page 1