Flow Control
Conditionals
if
, else if
and else
1 2 3 4 5 6 7 |
|
Loops
while
1 2 3 4 5 6 7 |
|
for...in
1 2 3 |
|
In this case the variable i
will be declared only for the loop and will not be available outside of the scope. If a variable already existed with the same name, it will be overshadowed.