.toLocaleString()

Term side of the Card
Topic: Number
Unit title: .toLocaleString()
Categories: Method
Explanation side of the Card

Explanation: The method that converts a number to a string using the locale-specific formatting. This is useful for displaying numbers with appropriate thousand separators, decimal points and currency symbols based on the user's locale.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: