As a JavaScript developer, you've likely been told that let and const are block scoped. But, how does that work when there is no block?
Classic Example: var vs. let
It doesn't get much more straightforward than this.
// logs 10 ten times
for (var i = 0;i < 10;i += 1) {






