Why I Hate JavaScript


i = '10'  // i is "10"
i = i + 1 // i is now "101"
i = i - 1 // i is now 100
i = i + 1 // i is now 101

 

Advertisements