Table of contents
- 1. Summary
- 2. Syntax
- 3. Parameters
- 4. Description
- 5. See also
Summary
Returns a string representing the object. This method is meant to be overriden by derived objects for locale-specific purposes.
| Method of Object | |
| ECMA Version: | ECMA-262 Edition 3 |
Syntax
toLocaleString()
Parameters
None.
Description
Object's toLocaleString returns the result of calling toString.
This function is provided to give objects a generic toLocaleString method, even though not all may use it. Currently, only Array, Number, and Date override toLocaleString.