How “100″ != 100

We’re all probably used to the usual comparison methods in different languages. After all, if you learned some sort of Math, you know == is a rather common comparison operator in some programming languages. Javascript has it too, but some of the comparisons done in Javascript sometimes produces rather ambiguous results. Don’t believe me? Fire up your Firebug console and try the expressions in the first table below.

Ruminations
  • Home after spending 5 glorious computer free days in Yosemite. Who can believe there are actually so many stars in the sky! Where are the stars in San Jose? Hiding out??? Anyways, I climbed and conquered Half Dome - I nearly chickened out once I saw the cables. But when a guy came climbing down with a natural high claiming if a 9 year old girl can climb Half Dome, so can he, I decided to buck up and do it. It was indescribable. Have to admit though, I thought the climb down was much tougher than the climb up.