Boolean.prototype özelliği Boolean yapıcı methodunun prototipini temsil eder.
Property attributes of Boolean.prototype |
|
|---|---|
| Writable | no |
| Enumerable | no |
| Configurable | no |
Bu etkileşimli örnek için kaynak bir GitHub deposunda saklanır. Etkileşimli örnek projeye katkıda bulunmak istiyorsanız lütfen https://github.com/mdn/interactive-examples'ları kopyalayıp bize pull request gönderin.
Boolean instances inherit from Boolean.prototype. You can use the constructor's prototype object to add properties or methods to all Boolean instances.
Properties
Boolean.prototype.constructor- Bir örneğin prototipini oluşturan fonksiyonu döndürür. Bu varsayılan olarak
Booleanişlevidir.
Methods
Boolean.prototype.toSource()Booleannesnesinin kaynağını içeren bir dize döndürür; eşdeğer bir nesne oluşturmak için bu dizeyi kullanabilirsiniz.Object.prototype.toSource ()methodunu geçersiz kılar.Boolean.prototype.toString()- Nesnenin değerine bağlı olarak
"true"ya da"false"dizesini döndürür.Object.prototype.toString ()methodunu geçersiz kılar. Boolean.prototype.valueOf()Booleannesnesinin temel değerini döndürür.Object.prototype.valueOf ()methodunu geçersiz kılar.
Özellikler
| Özellikler | Durum | Açıklama |
|---|---|---|
| ECMAScript 1st Edition (ECMA-262) | Standard | İlk tanım. JavaScript 1.0'da uygulanmaktadır. |
| ECMAScript 5.1 (ECMA-262) The definition of 'Boolean.prototype' in that specification. |
Standard | |
| ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'Boolean.prototype' in that specification. |
Standard | |
| ECMAScript Latest Draft (ECMA-262) The definition of 'Boolean.prototype' in that specification. |
Draft |
Tarayıcı Uyumluluğu
Bu sayfadaki uyumluluk tablosu yapılandırılmış verilerden oluşturulmuştur. Verilere katkıda bulunmak istiyorsanız, lütfen https://github.com/mdn/browser-compat-data adresini ziyaret edin ve bize pull request gönderin.
Update compatibility data on GitHub
| Desktop | Mobile | Server | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
prototype | Chrome Full support Yes | Edge Full support 12 | Firefox Full support 1 | IE Full support Yes | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support 4 | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes | nodejs Full support Yes |
Legend
- Full support
- Full support