Saturday, 17 August 2013

typeof("2px" - 1 ) returns number and "2px" - 1 returns NaN. Why?

typeof("2px" - 1 ) returns number and "2px" - 1 returns NaN. Why?

As the title says it all. Why does typeof("2px" - 1) return number and
"2px" - 1 return NaN?

No comments:

Post a Comment