Summary
Returns a string representing the object. This method is meant to be overriden by derived objects for locale-specific purposes.
Method of Object | |
ECMAScript Edition: | ECMAScript Language Specification, 3rd Edition |
Syntax
object.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
.