• 0 Posts
  • 1 Comment
Joined 1Y ago
cake
Cake day: Jun 06, 2023

help-circle
rss

because if A is the string “-1” and B is the integer -1, JS evaluates A==B as true because reasons

Interesting. If it were the other way around, I think I would have been fine with it (i.e. == used for comparison with type like any other language and === without type). But as it stands now I would hate it if I had to write in JS (but I don’t so it’s fine).