59

Damn JavaScript

Comments
  • 6
    The problem is that + becomes a concatenation operator in the pressence of a string, but minus keeps its mathematical purpose. Couple that with type coercion and you got yourself a foot gun (or a shin smasher in this case). It's easy to avoid once you know to look out for it.
  • 0
    parseInt()
  • 4
    @JonnyCodewalker The joke is that the rider is inflicting the pain upon himself, but blaming $COMMONLY_TALKED_DOWN_CONCEPT
  • 0
    The thing is this makes total sense tbh. You can add to a string but you can't subtract from one. Therefore - is expected to be used on a number and + can be used on anything. Since a string was supplied it assumes that you want to use it as a string.
  • 0
    Java script stands out from all the available sources for the users of the computer. The enhancement of the goals and java scripts has been uploaded on https://telstraeduaustralia.com/bes... for the future times. The appliances have ban ensured for the employment of the men for the java script. The coding is done for the new transformation of the languages for the computer specialists.
Add Comment