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
Boolean
işlevidir.
Methods
Boolean.prototype.toSource()
Boolean
nesnesinin 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()
Boolean
nesnesinin 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 (ECMA-262) The definition of 'Boolean.prototype' in that specification. |
Living Standard |
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.
No compatibility data found. Please contribute data for "javascript.builtins.Boolean.prototype" (depth: 1) to the MDN compatibility data repository.