Both the constructor of the system and the custom of the constructor, the invocation style are the same, the Date, for example: see figure
Constructor can not directly as argument, to pass after the call to the incoming function,
Not so system custom object is the constructor, such as Math, Math is not a constructor, the inside there is a static member, so its invocation style is direct call, example:
PI calls -- Math. PI
Take the absolute value calls -- Math. Abs ()
As the Date, as a constructor, you can't direct call, call way:
Var d=new Date ();
The console. The log (d.g etDate);
