JavaScript Scope
--
I remember encountering a plethora of errors regarding the Javascript scope. An error you will be more than acquainted with is the : RefrenceError.
This just means when you assign a value to a variable without the let,
or const
keywords or if a variable/function is not in your current scope, JavaScript will yell at you and throw a RefrenceError
the message that looks similar to this:
RefrenceError: assignment to undeclared variable…