In JavaScript, each function creates its own scope. A new scope is created only when you create a new function. Lexical scope is the ability of a function scope to access variables from the parent/outer scope. Checkout the below diagram for better un...
mayur-codes.hashnode.dev2 min readNo responses yet.