Amit Prajapatiamitprajapati.hashnode.dev·Oct 6, 2022The 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...JavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.