The Scope Chain, Scope and Lexical Environment in Javascript...
Scope of a Variable and Function.
We can define a scope where, we can access the variables and function in an Javascript Code.
We will try understand the scope with the help of an example.
var x =10;
function a (){
var x =20;
console.log(x)
}
fun...
amitprajapati.hashnode.dev2 min read