Global Variables in HTML
The Global variables defined with the var keyword are part of the window object. The window object is the global scope in HTML.
Javascript Scope
JavaScript Scope is the area where a variable (or function) exists and is accessible. We can layer the scope in a system which means the child scope can access the parent scope but not vice-versa.
Contact Us