Open In App

Explain Different Types of Scopes in JavaScript ?

Scope refers to the environment in which a variable or a function is declared and accessible. It means the environment in which the variable is visible, can be accessed and changes can be made to it. It is of three types in JavaScript.

Article Tags :