prototype

Table of contents

  1. 1. Summary
  2. 2. Description
  3. 3. Properties
  4. 4. Methods
Table of contents
  1. 1. Summary
  2. 2. Description
  3. 3. Properties
  4. 4. Methods

Summary

Represents the prototype for the Boolean constructor.

Description

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

Properties

constructor
Returns the function that created an instance's prototype. This is the Boolean function by default.
Properties inherited from Object:
__parent__, __proto__

Methods

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.

Tags (0)

Edit tags
  • No tags

Attachments (0)

 

Attach file