reading-notes

Class Eight Notes

Loops

Lecture

Expressions and Operators1

Loops2

for ([initialExpression];[conditionExpression];[incrementExpression]) statement

for (variable in object) statement

do, is the condition is false, statement within the loop stops executing statement //always executed ONCE before the condition is checked, use {} to group the statements while (condition); //further executes if returned true

while (condition) statement

Things I want to know more about

Back to main page

References

  1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators 

  2. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration