Number isNaN() method

Find all information about the JavaScript isNaN() method of the Number object

NaNIt is a special case. A number isNaNonly atNaNOr if it is an expression that divides 0 by 0, it returnsNaN. In all other cases, we can pass it to us, but it will returnfalse:

Number.isNaN(NaN) //true
Number.isNaN(0 / 0) //true

Number.isNaN(1) //false
Number.isNaN('Flavio') //false
Number.isNaN(true) //false
Number.isNaN({}) //false
Number.isNaN([1, 2, 3]) //false

Download mine for freeJavaScript beginner's manual


More js tutorials: