Checking if a Value is a Number in Javascript with isNaN()by@smpnjn

Checking if a Value is a Number in Javascript with isNaN()

tldt arrow
Read on Terminal Reader🖨️

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.
featured image - Checking if a Value is a Number in Javascript with isNaN()
Johnny Simpson HackerNoon profile picture

@smpnjn

Johnny Simpson

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa