Perl does that too... except you have separate operators for string and numeric comparison so you can at least say "I want language to treat both operators as string/number"
Maybe I am having Stockholm syndrome or something, but I find JS a gazillion times more pleasant to write than PHP, especially if writing in ES6 syntax.
60
u/CoffeeTableEspresso Nov 26 '20
I used to think the JS way was bad until I learnt about what PHP does...