Loops in Javascript
- for loop
- Execute code a certain amount of times (with counter variable)
- for-of loop
- Execute for every element in an
array
- Execute for every element in an
- for-in loop
- Execute for every key in an
object
- Execute for every key in an
- while loop
- Execute code as long as a condition is true