Why does 5 == '5' return true?
JavaScript converts the string '5' into a number before comparison.
Explore This Question
Search for additional explanations using these tools:
More FAQs in What Is the Difference Between == and ===?
Still have questions?
Browse all our FAQs or reach out to our support team
