Why does var return undefined?
Memory is allocated during the creation phase before code execution.
Explore This Question
Search for additional explanations using these tools:
More FAQs in What Is Hoisting in JavaScript?
Still have questions?
Browse all our FAQs or reach out to our support team
