Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:Boolean:toSource

From MDC

Non-standard

Contents

[edit] Summary

Returns a string representing the source code of the object.

Property of Boolean
Implemented in: JavaScript 1.3

[edit] Syntax

boolean.toSource()

[edit] Parameters

None.

[edit] Description

The toSource method returns the following values:

  • For the built-in Boolean object, toSource returns the following string indicating that the source code is not available:
function Boolean() {
   [native code]
}
  • For instances of Boolean, toSource returns a string representing the source code.

This method is usually called internally by JavaScript and not explicitly in code.

[edit] See Also

Object.toSource