In JavaScript, SCOPE is the set of variables, objects, and functions you have access to. "Scope" is just a technical term for the parts of your code that have access to a variable.
In JavaScript, objects and functions are also variables. JavaScript has function scope: the scope changes inside functions. Variables declared within a JavaScript function, become LOCAL to the function. Local variables have local scope: they can only be accessed within the function.
Just as variables defined within a function are local variables, the variables defined outside a function are called global variables.
In the picture on the left, the scope of the local variable is highlighted blue – it's the function where that var was defined. Any code inside that function can access (read and change) this variable. Any code outside it cannot. It's local, so it's invisible from outside.
Variables defined in the white area are global. Their scope is the entire script. Which means that you can read and change them anywhere in your code.