Blog

Scope in Javascript

How do you explain scope. C’mon man It’s like scope, you know. Try to explain scope in ECMAScript. Wikipedia has a good explanation. https://en.wikipedia.org/wiki/Scope_(computer_science) OK, scope in javascript W3C explains scope. https://www.w3schools.com/js/js_scope.asp ECMAScript scope is the set of variables, objects, and functions you have access to. Global variables have global scope and local variables have local scope.  All […]