A Simple Guide to Lexical Scoping in JavaScript
Introduction
Variables in JavaScript can be accessed depending on where they are declared. If they are declared in a global scope, they can be accessed anywhere in the program but if they are declared in a local scope which may either be function sco...
okure.hashnode.dev5 min read