UNDERSTANDING SCOPING IN JAVASCRIPT: GLOBAL, FUNCTION, AND BLOCK.

Ever wonder what determines the accessibility (visibility) of variables in JavaScript? Well, wonder no more, that is a concept referred to…