This example illustrates how let & var behave differently with block scoping.
You can study this example in more detail by following the guided step-through right here.
This example illustrates how JavaScript implements "let" with nested block scopes.
You can study this example in more detail by following the guided step-through right here.
The switch/case structure. Sort of a trickier and more risky version of if/else.
You can study this example in more detail by following the guided step-through right here.
The execution behavior of a for loop with "var", simulated using a while loop.
You can study this example in more detail by following the guided step-through right here.
The execution behavior of a for loop with "let", simulated using a while loop.
You can study this example in more detail by following the guided step-through right here.