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".
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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".