DEV Community

loading...

Discussion on: Javascript variables - var, let and const.

Collapse
toanoop profile image
Anoop Sivadas

Can you please let me know how you got the "Uncaught ReferenceError: fullName is not defined" . Actually the variable 'fullName' will be hoisted and you won't get an "Uncaught ReferenceError" if u reference it . In this case if you console.log fullName you will get the value as "undefined".

Forem Open with the Forem app