= 221
"2"+3 =>23
Why 23 - true = 22?
🤔
When JS sees that both side of an operation are different, it tries to change the either type to a compatible type
This is why you use TypeScript. No accidental mixing of types. Mixing types in JS leads to weird behavior
Обсуждают сегодня