Possible Duplicate:
Why does Chrome Dev Tool show a dates __proto__ as Invalid Date?
I get a weird message when I look up the prototype of the Date
object:
Date.prototype; // Invalid Date
This is strange; why am I not getting the object from the prototype of Date
as expected? Furthermore, the message that it returns is a string, but typeof(Date.prototype)
returns "object". I also find that peculiar. Why am I getting this output?