stackyFACTS
Technology

Why JavaScript calls NaN a number

HERE’S THE INTERESTING PART

Nothing screams logical design like classifying a literal non-number as a numeric type. In JavaScript, checking the type of 'NaN' proudly returns 'number', letting your code fail at basic math while continuing to confidently execute as if everything is perfectly fine.

Why JavaScript calls NaN a number
STACKY / Technology
One discovery leads to another.

Keep exploring facts in this topic.

Technology →
STACKY FOR IPHONE

A bigger world.
One discovery
at a time.

Keep discovering with Stacky. Interesting facts in an app that is always within reach.

Download on the App Store
ONE MORE DISCOVERY?

Keep exploring

All in this topic →
StackyMore discoveries in the app
Download on the App Store