15

Welcome to the darkside

Comments
  • 3
    If you have use for tips like that, please stop, because 1) you're doing it wrong and 2) JavaScript is obviously not for you.
  • 1
    @kamen
    1. That is not my twitter handle
  • 1
    Fucking type coercion...
  • 3
    If you add a 2 to text it gets parsed to string, if you add -1 it stays a number because of the fucking minus sign.

    Also, fuck javascript.
  • 1
    Problem here is that the + has a double meaning in JS addition and concatenation.
    Doesn't the ++ operator work instead of arcane double negative?
  • 0
  • 1
    @zombieleet I didn't imply it was, this was more to whoever's reading it.
  • 4
    I'm mainly JS Dev and this is the worst tip I've seen in quite some time.

    I mean it works, but you don't want it to work like this.
Add Comment