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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s