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 Number constructor.

Description

All Number instances inherit from Number.prototype. The prototype object of the Number constructor can be modified to affect all Number instances.

Properties

constructor
Returns the function that created this object's instance. By default this is the Number object.
Properties inherited from Object:
__parent__, __proto__

Methods

toExponential
Returns a string representing the number in exponential notation.
toFixed
Returns a string representing the number in fixed-point notation.
toLocaleString
Returns a human readable string representing the number using the locale of the environment. Overrides the Object.prototype.toLocaleString method.
toPrecision
Returns a string representing the number to a specified precision in fixed-point or exponential notation.
toSource
Non-standard
Returns an object literal representing the specified Number object; you can use this value to create a new object. Overrides the Object.prototype.toSource method.
toString
Returns a string representing the specified object. Overrides the Object.prototype.toString method.
valueOf
Returns the primitive value of the specified object. Overrides the Object.prototype.valueOf method.

Tags (0)

Edit tags
  • No tags

Attachments (0)

 

Attach file