DEV Community

loading...
LoginRadius

Checking for NaN in JavaScript

mohammed786 profile image Mohammed Modi Originally published at loginradius.com on ・1 min read

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

Discussion (0)

pic
Editor guide