Is var block scoped?
No. var is function scoped.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in What Is the Difference Between var, let, and const?
Still have questions?
Browse all our FAQs or reach out to our support team
