Is var block scoped?
No. var is function scoped.
Explore This Question
Search for additional explanations using these tools:
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
