Course contentsShow
JavaScript
Lesson 287 of 2,7238. Type CoercionPro lesson

The Empty String to Number Coercion

Why '' coerces to 0, and how this causes unexpected comparisons and arithmetic results.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.