Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:Object:toLocaleString

From MDC


Contents

[edit] 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

[edit] Syntax

toLocaleString()

[edit] Parameters

None.

[edit] 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.

[edit] See also

toString