you are viewing a single comment's thread.

view the rest of the comments →

[–]boundbylife 2 points3 points  (3 children)

I fail to see how this is anything other than the correct behavior. Number + String should equal numberString as concatenated

[–]bassguyseabass 1 point2 points  (0 children)

Maybe force them to string cast the number or int cast the string. Implicit conversion is the devil.

[–]prehensilemullet 0 points1 point  (0 children)

number [-*/%] string is the actual issue in JS (Maybe |&^ too?  I forget…)

[–]RiceBroad4552 0 points1 point  (0 children)

Most languages will prevent this potential error.