5. Summary and References
Summary
In summary,
- break statement when encountered by JavaScript in a loop, the loop exits immediately without any other statements in the loop being executed.
- continue statement prevents the execution of the current iteration when JavaScript finds a continuous statement in a loop and goes back to the beginning of the loop to begin the next iteration.
- Nested loops are a type of loop that is made up of many loops. The most popular type of nested loop is one loop within another.
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: (n.d.). Retrieve from https://www.dofactory.com/javascript/loops
JavaScript break statement: (n.d.). Retrieve from https://www.programiz.com/javascript/break-statement
Nested Loop JavaScript: (n.d.). Retrieve from https://codingrooms.com/blog/nested-loops-javascript/
What is Nested Loop in JavaScript: (n.d.). Retrieve from https://gyandecoder.com/what-is-nested-loop-in-javascript/