jskatas.org Continuously Learn JavaScript. Your Way.

Type conversion: to number

How do different types convert to a number?

Donate to NGO Julenka. Support Ukranians in need. Julenka is an NGO which my brother founded in 2011 to support Ukranian families and kids in need.

Type conversion - to number

  • undefined converts to NaN
  • null converts to +0