Boolean.prototype.constructor - {___a:::8937:::Boolean___}を返す
Boolean.prototype.constructorはコンストラクタのBooleanを返すプロパティです。
概要
デモ
Boolean.prototype.constructorのデモです。
<!-- このコードは編集できます。 -->
<!DOCTYPE html>
<html>
<head>
<style>
body {
white-space: pre-wrap ;
}
</style>
</head>
<body>
<script>
/** try it! **/
var a = Boolean.prototype.constructor ;
/** try it! **/
var results = { a:a, } ;
for( var name in results ) {
console.log( name, results[name] ) ;
document.body.appendChild( new Text( name + " = " + results[name] + "\n" ) ) ;
}
</script>
</body>
</html>
サポート状況
Chrome | Firefox | Safari | Edge | IE | Opera | iOS Safari | Android |
---|---|---|---|---|---|---|---|
● | ● | ● | ● | ● | ● | ● | ● |
関連記事
- Boolean.prototype.valueOf()
- Boolean.prototype.valueOf()は、Booleanのプリミティブ値を返すメソッドです。そのまま真偽値を返します。
- Boolean.prototype.toString()
- Boolean.prototype.toString()は、真偽値を文字列に変換するメソッドです。
- Boolean.prototype
- Boolean.prototypeは、Booleanのプロトタイプです。このオブジェクトに設定したプロパティやメソッドを、真偽値の各インスタンスが持つようになります。
- TypedArray.prototype.constructor
- TypedArray.prototype.constructorはコンストラクタのTypedArrayを返すプロパティです。