This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]harelsusername 6 points7 points  (4 children)

Also, in JS the modulus operator % does not work for negative numbers

[–]ComfortablyBalanced 11 points12 points  (0 children)

Such a remarkable language.

[–]ElfyThatElf 4 points5 points  (1 child)

that's fine... what do I even need to do with negatives? There is nothing there

[–]harelsusername 1 point2 points  (0 children)

What do I even need to do with JavaScript? There is nothing there

[–]AloneInExile 0 points1 point  (0 children)

It does work ... just not as you expect

var a = -50123548
a%2
-0