The answer
No. var variables are hoisted with undefined. Only the declaration is hoisted; the assignment happens during the code execution phase when the line is reached.
No. var variables are hoisted with undefined. Only the declaration is hoisted; the assignment happens during the code execution phase when the line is reached.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.