JavaScript does not create a new scope for each code block.
This code will display the value of i (10), even OUTSIDE the for loop block: