Is hoisting only for var?
No. let, const, and function declarations are also hoisted.
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
