JavaScript isNaN()
JavaScript isNaN()
The isNaN() global method is used to return true if a value is NaN or else false. NaN stands for Not-a-Number. It converts the value into a number before testing it. Number.isNaN() is used to return true if a number is Not-a-Number.
Syntax:-
Its syntax is:- isNaN(value)
Return:-
Its return is:- true if the value is Not-a-Number else false
Further Explanation:-
Parameter | Description |
value | Required. The value to be tested. |