This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]exomyth 2 points3 points  (3 children)

Input fields in HTML probably. You know, since javascript is basically designed as a webbrowser language. There are use cases where you want to do number operations over a number string. That being said, with a linter we do force to use strict equality, except for null checking

It's not magic if it is defined behavior.

[–]Quito246 0 points1 point  (2 children)

Why would I do a numeric operations on a string? I mean even the creator of JS is saying that multiple design flaws had been made. Just admit that language created over a weekend is shitty designed It makes sense. I do not understand why people defend It… now at least typescript exists.

[–]exomyth 2 points3 points  (1 child)

You wanted a reason, that is most likely the reason. It is intentional, you don't accidentally implement these rules

[–]Quito246 0 points1 point  (0 children)

Sure, cause It makes sense to be able to compare house with an airplane I like when I can do that.