I am a Front End Web Developer who is on a journey to learn as much as possible.
I have lived in Korea for over 5 years and love the food and language.
Whilst I generally understand how hoisting works on a surface level, I assume it's still good practice to define or initialise your variable before you try to access it?
Is hoisting a thing just to help code be interpreted despite there being some human error?
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.
Whilst I generally understand how hoisting works on a surface level, I assume it's still good practice to define or initialise your variable before you try to access it?
Is hoisting a thing just to help code be interpreted despite there being some human error?