Why does var return undefined?
Memory is allocated during the creation phase before code execution.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in What Is Hoisting in JavaScript?
Still have questions?
Browse all our FAQs or reach out to our support team
