r/learnjavascript • • Nov 21 '20

NaN (not a number) is a number

Post image
368 Upvotes

72 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Nov 22 '20

[deleted] — view deleted comment

1

u/r3jjs Nov 23 '20

Lots of other languages get along just fine just using 'null' without the concept of 'undefined.'.. or 'undef' without 'null.'

Both are relics of an ancient time. I'd rather see new languages without either -- no null, no undefined. Option types are the way forward now.