3 ms·
> What should comparing a string to a number equal anyway? I think there are two valid options: false and signaling an error (by any means such as returning nu
by Someone 4y ago
> What should comparing a string to a number equal anyway?
I think there are two valid options: false and signaling an error (by any means such as returning null, throwing, etc). JavaScript chooses the third (for some strings)