DEV Community

Calvin
Calvin

Posted on

Reading Snippets [9]

A reference error is a result of attempting to access a function's local variable using a global scope.

It is not possible for a global scope to access variable definitions in a lower level scope.

Attempts to access variables in a function from a global scope will result in the error message, "RefferenceError: variable is not defined"

Top comments (0)