The word “scope” itself means “extent “or “range” to which a subject matter is limited to. In context to coding this means, that whether you can use a variable or not, is determined by where it is declared in your code. There are 4 types of scope in a JavaScript document, for example script.js 1. Global scope Inside a JavaScript document, global scope is the
[ Read More ]