jsRant asked this 4 years ago

Javascript reliable way to test for NaN

What is the most reliable way to test if a variable is NaN?


mamdouh 1 year ago
You can use the isNaN() function which returns true if a value is not a number and false if it is a number.