Javascript WTF

A site where we can all share in those little WTF moments we enjoy with Javascript


Subtraction vs Addition vs Concatenation

String manipulation vs Maths

> '10' - 3
7

> '10' + 3
'103'
> '1' / '1'
1
> '1' * '1'
1
> '1' + '1'
'11'