Compare Revisions

Boolean.prototype

Change Revisions

Revision 32585:

Revision 32585 by delae on

Revision 32586:

Revision 32586 by delae on

Title:
prototype
prototype
Slug:
JavaScript/Reference/Global_Objects/Boolean/prototype
JavaScript/Reference/Global_Objects/Boolean/prototype
Content:

Revision 32585
Revision 32586
t19    <div class="onlyinclude">t
20      <div class="includeonly">
21        <p>19    <p>
22          <a class="internal" href="/en/Core%20JavaScript%201.5%220      <a class="internal" href="/en/Core_JavaScript_1.5_Reference
>0Reference/Global%20Objects/Boolean" title="en/Core JavaScript 1.>/Global_Objects/Boolean" title="en/Core JavaScript 1.5 Reference/
>5 Reference/Global Objects/Boolean">Boolean</a> instances inherit>Global Objects/Boolean">Boolean</a> instances inherit from <a cla
> from <a class="internal" href="/en/Core%20JavaScript%201.5%20Ref>ss="internal" href="/en/Core_JavaScript_1.5_Reference/Global_Obje
>erence/Global%20Objects/Boolean/Prototype" title="en/Core JavaScr>cts/Boolean/prototype" title="en/Core JavaScript 1.5 Reference/Gl
>ipt 1.5 Reference/Global Objects/Boolean/Prototype">Boolean.proto>obal Objects/Boolean/Prototype">Boolean.prototype</a>. You can us
>type</a>. You can use the constructor's prototype object to add p>e the constructor's prototype object to add properties or methods
>roperties or methods to all <a class="internal" href="/en/Core%20> to all <a class="internal" href="/en/Core_JavaScript_1.5_Referen
>JavaScript%201.5%20Reference/Global%20Objects/Boolean" title="en/>ce/Global_Objects/Boolean" title="en/Core JavaScript 1.5 Referenc
>Core JavaScript 1.5 Reference/Global Objects/Boolean">Boolean</a>>e/Global Objects/Boolean">Boolean</a> instances.
> instances. 
23        </p>21    </p>
24        <h4>22    <h4>
25          Properties23      Properties
26        </h4>24    </h4>
27        <dl>25    <dl>
28          <dt>26      <dt>
29            <a href="/en/Core_JavaScript_1.5_Reference/Global_Obj27        <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects
>ects/Boolean/constructor" title="en/Core_JavaScript_1.5_Reference>/Boolean/constructor" title="en/Core_JavaScript_1.5_Reference/Glo
>/Global_Objects/Boolean/constructor">constructor</a>>bal_Objects/Boolean/constructor">constructor</a>
30          </dt>28      </dt>
31          <dd>29      <dd>
32            Returns the function that created an instance's proto30        Returns the function that created an instance's prototype
>type. This is the <a class="internal" href="/en/Core%20JavaScript>. This is the <a class="internal" href="/en/Core_JavaScript_1.5_R
>%201.5%20Reference/Global%20Objects/Boolean" title="en/Core JavaS>eference/Global_Objects/Boolean" title="en/Core JavaScript 1.5 Re
>cript 1.5 Reference/Global Objects/Boolean">Boolean</a> function >ference/Global Objects/Boolean">Boolean</a> function by default.
>by default. 
33          </dd>31      </dd>
34        </dl>32    </dl>
35        <h4>33    <h4>
36          Methods34      Methods
37        </h4>35    </h4>
38        <dl>36    <dl>
39          <dt>37      <dt>
40            <a href="/en/Core_JavaScript_1.5_Reference/Global_Obj38        <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects
>ects/Boolean/toSource" title="en/Core_JavaScript_1.5_Reference/Gl>/Boolean/toSource" title="en/Core_JavaScript_1.5_Reference/Global
>obal_Objects/Boolean/toSource">toSource</a>>_Objects/Boolean/toSource">toSource</a>
41          </dt>39      </dt>
42          <dd>40      <dd>
43            Returns a string containing the source of the <a clas41        Returns a string containing the source of the <a class="i
>s="internal" href="/en/Core%20JavaScript%201.5%20Reference/Global>nternal" href="/en/Core_JavaScript_1.5_Reference/Global_Objects/B
>%20Objects/Boolean" title="en/Core JavaScript 1.5 Reference/Globa>oolean" title="en/Core JavaScript 1.5 Reference/Global Objects/Bo
>l Objects/Boolean">Boolean</a> object; you can use this string to>olean">Boolean</a> object; you can use this string to create an e
> create an equivalent object. Overrides the <a href="/en/Core_Jav>quivalent object. Overrides the <a href="/en/Core_JavaScript_1.5_
>aScript_1.5_Reference/Global_Objects/Object/toSource" title="en/C>Reference/Global_Objects/Object/toSource" title="en/Core_JavaScri
>ore_JavaScript_1.5_Reference/Global_Objects/Object/toSource">Obje>pt_1.5_Reference/Global_Objects/Object/toSource">Object.prototype
>ct.prototype.toSource</a> method.>.toSource</a> method.
44          </dd>42      </dd>
45        </dl>43    </dl>
46        <dl>44    <dl>
47          <dt>45      <dt>
48            <a href="/en/Core_JavaScript_1.5_Reference/Global_Obj46        <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects
>ects/Boolean/toString" title="en/Core_JavaScript_1.5_Reference/Gl>/Boolean/toString" title="en/Core_JavaScript_1.5_Reference/Global
>obal_Objects/Boolean/toString">toString</a>>_Objects/Boolean/toString">toString</a>
49          </dt>47      </dt>
50          <dd>48      <dd>
51            Returns a string of either "true" or "false" dependin49        Returns a string of either "true" or "false" depending up
>g upon the value of the object. Overrides the <a href="/en/Core_J>on the value of the object. Overrides the <a href="/en/Core_JavaS
>avaScript_1.5_Reference/Global_Objects/Object/toString" title="en>cript_1.5_Reference/Global_Objects/Object/toString" title="en/Cor
>/Core_JavaScript_1.5_Reference/Global_Objects/Object/toString">Ob>e_JavaScript_1.5_Reference/Global_Objects/Object/toString">Object
>ject.prototype.toString</a> method.>.prototype.toString</a> method.
52          </dd>50      </dd>
53        </dl>51    </dl>
54        <dl>52    <dl>
55          <dt>53      <dt>
56            <a href="/en/Core_JavaScript_1.5_Reference/Global_Obj54        <a href="/en/Core_JavaScript_1.5_Reference/Global_Objects
>ects/Boolean/valueOf" title="en/Core_JavaScript_1.5_Reference/Glo>/Boolean/valueOf" title="en/Core_JavaScript_1.5_Reference/Global_
>bal_Objects/Boolean/valueOf">valueOf</a>>Objects/Boolean/valueOf">valueOf</a>
57          </dt>55      </dt>
58          <dd>56      <dd>
59            Returns the primitive value of the <a class="internal57        Returns the primitive value of the <a class="internal" hr
>" href="/en/Core%20JavaScript%201.5%20Reference/Global%20Objects/>ef="/en/Core_JavaScript_1.5_Reference/Global_Objects/Boolean" tit
>Boolean" title="en/Core JavaScript 1.5 Reference/Global Objects/B>le="en/Core JavaScript 1.5 Reference/Global Objects/Boolean">Bool
>oolean">Boolean</a> object. Overrides the <a href="/en/Core_JavaS>ean</a> object. Overrides the <a href="/en/Core_JavaScript_1.5_Re
>cript_1.5_Reference/Global_Objects/Object/valueOf" title="en/Core>ference/Global_Objects/Object/valueOf" title="en/Core_JavaScript_
>_JavaScript_1.5_Reference/Global_Objects/Object/valueOf">Object.p>1.5_Reference/Global_Objects/Object/valueOf">Object.prototype.val
>rototype.valueOf</a> method.>ueOf</a> method.
60          </dd>58      </dd>
59    </dl>
60    <p>
61        </dl>{{ JSInherits("Object", "Methods", "__defineGetter__61      {{ JSInherits("Object", "Methods", "__defineGetter__", "__d
>", "__defineSetter__", "hasOwnProperty", "isPrototypeOf", "__look>efineSetter__", "hasOwnProperty", "isPrototypeOf", "__lookupGette
>upGetter__", "__lookupSetter__", "__noSuchMethod__", "propertyIsE>r__", "__lookupSetter__", "__noSuchMethod__", "propertyIsEnumerab
>numerable", "unwatch", "watch") }}>le", "unwatch", "watch") }}
62      </div>62    </p>
63      <p>63    <p>
64        &nbsp;64      &nbsp;
65      </p>65    </p>
66    </div>

Back to History