DEV Community

Discussion on: Do you know why in JavaScript is "11" + 1 = 111, but "11" - 1 = 10?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I would say that the first is type coerced from a string and the second is 2 numbers. Perfectly normal nobody panic 😅.