To add to the part about addition/concatenation, the underlying problem
String concatenation is also being replaced by template literals for projects employing the newer ES versions.
Yea. Type coercion is tricky. I think we just have to convert everything to the same type so that we won't make mistakes with we apply operators to them.
Some comments have been hidden by the post's author - find out more
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.