Scope A variable is not always available everywhere in your program. Some variables can be used anywhere, while others can only be used inside a function or a block. This is called Scope.

Source: [Dev.to](https://dev.to/pranay_7424/scope-of-variables-in-javascript-3bdm)

Sponsored