Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kamen69256yIf you have use for tips like that, please stop, because 1) you're doing it wrong and 2) JavaScript is obviously not for you.
-
mundo0349116yIf 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. -
hjk10156966yProblem here is that the + has a double meaning in JS addition and concatenation.
Doesn't the ++ operator work instead of arcane double negative? -
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.
Welcome to the darkside
joke/meme
javascript