DEV Community

Mohammed Modi for LoginRadius

Posted on • Originally published at loginradius.com on

Checking for NaN in JavaScript

What is NaN? NaN, in JavaScript, can be many things. In fact, it can be almost anything, so long as it is Not a Number. Its type is technical “number” (when evaluated with “typeof”), although it stands for Not a Number. What causes values to become NaN? Values can become NaN…

Read On

Top comments (0)