Javascript Loops

Use for when you know how many loops you should do. For-in loops let you iterate over the properties of an object. While it can work, it's not recommended to use for-in to loop over an array. For-of loops let you iterate over an iterable object such as strings, arrays, maps and sets. while (expression) statement Executes statement at least once. Break statements will halt and exit loops. Continue statements will halt but continue loops.