To add to this: the state of being not a number is only relevant to a number. Everything that’s already not a number doesn’t need a specific value to represent this state. It’s actually quite logical.
Apparently one of the few examples of JS not being weird.
To add to this: the state of being not a number is only relevant to a number. Everything that’s already not a number doesn’t need a specific value to represent this state. It’s actually quite logical.
Apparently one of the few examples of JS not being weird.
It is easier to understand the non-weirdness of it in a strongly typed language, IMO. But yes.