Checking if a Value is a Number in Javascript with isNaN()
Too Long; Didn't Read
In Javascript, we have numerous ways to check if something is or is not a number. This is a particularly common task in Javascript, where there is dynamic typing, resulting in some unexpected things being classified as numbers. Introducing isNaN, a special value in Javascript which stands for "Not a Number" In this guide we'll cover how to check whether something is a number, and the pitfalls you should avoid.