Object.toLocaleString

Did you know that you can read content offline by using one of these tools? If you would like to read offline MDN content in another format, let us know by commenting on Bug 665750.

Dash App
  • Tags
  • Files

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.

See also