Scope and Hoisting in JavaScript
What is Scope ?
Scope is set of rules for looking up variables by their identifier name.
Scope answers the question, where and how a variable is to be looked up within a program
Courtesy YDKJS
1. Global Scope
If you have a variable defined & ass...
shivamv.hashnode.dev6 min read