Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 247 Bytes

tolocalestring.md

File metadata and controls

9 lines (6 loc) · 247 Bytes

toLocaleString()

The toLocaleString() method returns a string with a language-sensitive representation of this number.

var number = 3500;

console.log(number.toLocaleString()); // Displays "3,500" if in U.S. English locale