Propriété constructor de l'constructeur Date JavaScript
- Page précédente constructor
- Page suivante getDate()
- Retour au niveau supérieur Manuel de référence JavaScript Date
Definition and usage
In JavaScript ,constructor
The property returns the constructor of the object.
The return value is a reference to the function, not the name of the function :
For JavaScript dates, the constructor property returns :function Date() { [native code] }
For JavaScript numbers, the constructor property returns :function Number() { [native code] }
For JavaScript strings, the constructor property returns :function String() { [native code] }
Instance
The constructor property returns the constructor of the date :
var d = new Date();
Syntax
Date.constructor
Technical details
Return value : | function Date() { [native code] } |
---|---|
JavaScript version : | ECMAScript 1 |
Support par navigateur
Propriétés | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
constructor | Support | Support | Support | Support | Support |
Pages connexes
Tutoriel :Date JavaScript
Tutoriel :Format de date JavaScript
Tutoriel :Constructeur d'objet JavaScript
- Page précédente constructor
- Page suivante getDate()
- Retour au niveau supérieur Manuel de référence JavaScript Date