prototype

  • Revision slug: JavaScript/תיעוד_JavaScript/אובייקטים_גלובליים/Boolean/prototype
  • Revision title: prototype
  • Revision id: 269985
  • Created:
  • Creator: ziv
  • Is current revision? לא
  • Comment page created, 147 words added

Revision Content

סיכום

ייצוג אב הטיפוס של האובייקט Boolean.

Represents the prototype for the Boolean constructor.

תיאור

Boolean instances inherit from Boolean.prototype. You can use the constructor's prototype object to add properties or methods to all Boolean instances.

מאפיינים

constructor
מחזיק את הפונקציה היוצרת את האובייקט Boolean.
{{ HEjsOverrides("Object", "properties", ["constructor"]) }}

מתודות

toSource
Returns a string containing the source of the Boolean object; you can use this string to create an equivalent object. Overrides the Object.prototype.toSource method.
toString
Returns a string of either "true" or "false" depending upon the value of the object. Overrides the Object.prototype.toStringmethod.
valueOf
Returns the primitive value of the Boolean object. Overrides the Object.prototype.valueOf method.
{{ jsOverrides("Object", "methods", ["toSource", "toString", "valueOf"]) }}

{{ languages( { "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Objets_globaux/Boolean/prototype", "ja": "ja/Core_JavaScript_1.5_Reference/Global_Objects/Boolean/prototype", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/Boolean/prototype" } ) }}

Revision Source

<div dir="rtl">
<h2 name="Summary">סיכום</h2>
<p>ייצוג אב הטיפוס של האובייקט <a href="/he/JavaScript/תיעוד_JavaScript/אובייקטים_גלובליים/Boolean" title="he/JavaScript/תיעוד JavaScript/אובייקטים גלובליים/Boolean">Boolean</a>.</p>
<p>Represents the prototype for the <a href="/en/JavaScript/Reference/Global_Objects/Boolean" title="en/JavaScript/Reference/Global_Objects/Boolean"><code>Boolean</code></a> constructor.</p>
<h2 name="Description">תיאור</h2>
<p><a class="internal" href="/en/JavaScript/Reference/Global_Objects/Boolean" title="en/JavaScript/Reference/Global Objects/Boolean"><code>Boolean</code></a> instances inherit from <a class="internal" href="/en/JavaScript/Reference/Global_Objects/Boolean/prototype" title="en/JavaScript/Reference/Global Objects/Boolean/Prototype"><code>Boolean.prototype</code></a>. You can use the constructor's prototype object to add properties or methods to all <code>Boolean</code> instances.</p>
<h2>מאפיינים</h2>
<dl> <dt><a href="/en/JavaScript/Reference/Global_Objects/Boolean/constructor" title="en/JavaScript/Reference/Global_Objects/Boolean/constructor"><code>constructor</code></a></dt> <dd>מחזיק את הפונקציה היוצרת את האובייקט <a href="/he/JavaScript/תיעוד_JavaScript/אובייקטים_גלובליים/Boolean" title="he/JavaScript/תיעוד JavaScript/אובייקטים גלובליים/Boolean">Boolean</a>.</dd>
</dl>
<div>{{ HEjsOverrides("Object", "properties", ["constructor"]) }}</div>
<h2>מתודות</h2>
<dl> <dt><a href="/en/JavaScript/Reference/Global_Objects/Boolean/toSource" title="en/JavaScript/Reference/Global_Objects/Boolean/toSource">toSource</a></dt> <dd>Returns a string containing the source of the <a class="internal" href="/en/JavaScript/Reference/Global_Objects/Boolean" title="en/JavaScript/Reference/Global Objects/Boolean"><code>Boolean</code></a> object; you can use this string to create an equivalent object. Overrides the <a href="/en/JavaScript/Reference/Global_Objects/Object/toSource" title="en/JavaScript/Reference/Global_Objects/Object/toSource"><code>Object.prototype.toSource</code></a> method.</dd>
</dl>
<dl> <dt><a href="/en/JavaScript/Reference/Global_Objects/Boolean/toString" title="en/JavaScript/Reference/Global_Objects/Boolean/toString"><code>toString</code></a></dt> <dd>Returns a string of either "true" or "false" depending upon the value of the object. Overrides the <a href="/en/JavaScript/Reference/Global_Objects/Object/toString" title="en/JavaScript/Reference/Global_Objects/Object/toString"><code>Object.prototype.toString</code></a>method.</dd>
</dl>
<dl> <dt><a href="/en/JavaScript/Reference/Global_Objects/Boolean/valueOf" title="en/JavaScript/Reference/Global_Objects/Boolean/valueOf"><code>valueOf</code></a></dt> <dd>Returns the primitive value of the <a class="internal" href="/en/JavaScript/Reference/Global_Objects/Boolean" title="en/JavaScript/Reference/Global Objects/Boolean"><code>Boolean</code></a> object. Overrides the <a href="/en/JavaScript/Reference/Global_Objects/Object/valueOf" title="en/JavaScript/Reference/Global_Objects/Object/valueOf"><code>Object.prototype.valueOf</code></a> method.</dd>
</dl>
<div>{{ jsOverrides("Object", "methods", ["toSource", "toString", "valueOf"]) }}</div>
<p>{{ languages( { "fr": "fr/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Objets_globaux/Boolean/prototype", "ja": "ja/Core_JavaScript_1.5_Reference/Global_Objects/Boolean/prototype", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/Boolean/prototype" } ) }}</p>
</div>
Revert to this revision