how to use tolocalestring() in javascript code example Example: toLocalString Data.prototype.toLocaleString()