A ReferenceError means you used a name that doesn't exist:
console.log(myName) // ReferenceError: myName is not defined
This happens when you misspell a variable, forget to declare it, or try to use it before the line where it's created. Check the spelling first. Then make sure the variable exists and is in scope where you're using it.