Minus sign subtracts strings

"1234567" + "89" // '123456789'
"1234567" - "345" // '1267'

(inspired by https://mobile.twitter.com/jasmerchant/status/1451244887228043269)

This is DOA, because you cannot change what a-b does.
But even if you could, why break a-b instead of fixing broken a+b ?

1 Like