Boolescher JavaScript-Konstruktor
❮
- Referenz
❯
Beispiel
let bool = false;
let text = bool.constructor;
Definition und Verwendung
Die constructor
Eigenschaft gibt die Funktion zurück, die den booleschen Prototyp erstellt hat.
Für boolesche JavaScript-Werte gibt die constructor
Eigenschaft Folgendes zurück:
function Boolean() { [nativer Code] }
Syntax
boolean.constructor
Rückgabewert
function Boolean() { [nativer Code] } |
Browser-Unterstützung
constructor
ist eine ECMAScript1 (ES1)-Funktion.
ES1 (JavaScript 1997) wird in allen Browsern vollständig unterstützt:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
❮
- Referenz
❯