• 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: June 6th, 2023

help-circle
  • 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).