Scope, Hoisting
Scope
The part of the program where a particular identifier such as a variable or a function name is visible or accessible.
In JS, we have two different kinds of scope- global scope and function scope.
Global scope- If you define an identifier outsi...
successo.hashnode.dev4 min read