I may be wrong, but 'Infinity' is like null and Undefined - a magic reserved word.It is not a property of the 'Number' object,
So Number.Infinity is Undefined in the same way as Number.whatever"whatever" is not a property on Number either, so it is also Undefined.
On Thursday, December 6, 2012 8:41:57 AM UTC+8, Christoph Bussler wrote:Hi,
as expected, typeof Infinity is 'number'. However, typeof Number.Infinity is 'undefined'. Why is that?
typeof Number.POSITIVE_INFINITY and typeof Number.NEGATIVE_INFINITY are both 'number', too. So I would expect typeof Number.Infinity to be 'number' also.
Thanks.