Full-time web dev; JS lover since 2002; CSS fanatic. #CSSIsAwesome
I try to stay up with new web platform features. Web feature you don't understand? Tell me! I'll write an article!
He/him
Imo the implicit type conversion is a little weird, but even ignoring that, I think the point was the difference in behavior between '11' + 1, which converts the number to a string, and '11' - 1, which converts the string to a number. This discrepancy makes implicit type casting feel unpredictable and weird, at noon least to me
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Imo the implicit type conversion is a little weird, but even ignoring that, I think the point was the difference in behavior between
'11' + 1
, which converts the number to a string, and'11' - 1
, which converts the string to a number. This discrepancy makes implicit type casting feel unpredictable and weird, at noon least to me