Variable Scope in JavaScript
There are three ways to declare variables in JavaScript - let , const and var . There are subtle differences in how they behave, and this post discusses one of them - their scope.
What Is Variable Scope?
Imagine there are two rooms A and B, and you'r...
abinjohn.in6 min read