Completion requirements
View
5. Summary and References
Summary
In summary,
- A loop statement is a statement of control flow that executes a statement or a series of statements repeatedly while a specific condition is true.\
- The while statement is used to repeat a statement or series of statements as long as true is evaluated by a given conditional expression.
- An iteration is named for any repetition of a looping statement.
- An infinite loop is a case where the declaration of a loop never ends because the conditional expression is never false.
- The do/while statement executes a statement or statements once, and then repeats the execution as long as true is determined by a specified conditional expression.
- The for..in loop is a more concise way of iterating over an object's properties.
References
Sasha
Vodnik and Don Gosselin(2015). JavaScript. In Sasha Vodnik and Don Gosselin
(Sixth Edition), Building Arrays and Controlling Flow (147-211). Australia,
Brazil, Mexico, Singapore, United Kingdom, United States, Cengage Learning
JavaScript Loops: (n.d.). Retrieve from https://www.tutorialrepublic.com/javascript-tutorial/javascript-loops.php
JavaScript Loops Explained: For Loop, While Loop, Do…while Loop, and More: (n.d.). Retrieve from https://www.freecodecamp.org/news/javascript-loops-explained-for-loop-for/
JavaScript Loops: (n.d.). Retrieve from https://www.tutorialrepublic.com/javascript-tutorial/javascript-loops.php
JavaScript Loops Explained: For Loop, While Loop, Do…while Loop, and More: (n.d.). Retrieve from https://www.freecodecamp.org/news/javascript-loops-explained-for-loop-for/