The answer
JavaScript converts the string '5' into a number before comparison.
JavaScript converts the string '5' into a number before comparison.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.