DEV Community

Matthew Peters
Matthew Peters

Posted on

Number.NaN and isNaN()

In this tutorial I'm going to be going over what are the Number.isNaN and isNaN(). So what are Number.NaN and isNaN, Number.isNaN determines if the value is not a number this method is true if the value of the type of number is identify to NaN (Not-A-Number) it is false the function for Number.isNaN is totally different from isNaN function the siNaN convert the value to a number it will be true for any value not a number. Note that Number.isNaN method is not supported in Internet Explorer.

Top comments (0)