Why am I getting an "Invalid Date" from Date.prototype?

Possible duplicate:
Why does the Chrome Dev Tool show __proto__ dates as an invalid date?

I get a strange message when I look at a prototype of an object Date:

Date.prototype; // Invalid Date

This is strange; why am I not getting the object from the prototype Dateas expected? In addition, the message that it returns is a string, but typeof(Date.prototype)returns an “object”. I also think this is peculiar. Why am I getting this conclusion?

+5
source share
1 answer

15.9.5 Properties of the Prototype Date Object

The prototype Date object itself is a Date object (its [[Class]] is "Date"), [[PrimitiveValue]] is NaN.

NaN is what happens

+3

All Articles