Globalization API discussion

Erik Arvidsson erik.arvidsson at
Fri Nov 18 13:16:51 PST 2011

On Fri, Nov 18, 2011 at 12:41, Norbert Lindenberg
<ecmascript at> wrote:
> With that, the first example would become:
> var price = 300,
>    currency = price.toLocaleString(localeList, {style: "currency", currency: "USD"});

We also talked about moving the localeList into the options and
defaulting to the default localelist which would make it even more

var price = 300;
var currency = price.toLocaleString({style: "currency", currency: "USD"});


More information about the es-discuss mailing list