Skip to content

Instantly share code, notes, and snippets.

View ikemtz's full-sized avatar
🎯
Focusing

Isaac Martinez ikemtz

🎯
Focusing
View GitHub Profile
@ikemtz
ikemtz / loopExampesForCIS110.js
Created October 21, 2019 12:58
Loop Examples for CIS110
// While Loop
var canGraduate = false;
// The while loop will execute the logic within as long as the logical condition is true
// In this example we're evaluating the negated (!) value of canGraduate
// Negating means that your flipping a false to true and vice-versa.
while (!canGraduate) {
passNextCourse();
//In this scenario, when you've met all the requirements for graduation
//This expression will set the value of canGraduate to true
canGraduate = haveIMetTheRequirementsForGraduation();