DEV Community

Discussion on: What is the oddest JavaScript behavior?

Collapse
 
uriell profile image
Uriell • Edited
0.0.toString() !== "0.0"

this one left me wondering quite a while why my API was returning null:

JSON.stringify(NaN) // null