<html>
<body>
<h1>JavaScript Number toLocaleString()</h1>
<p>The options parameter is an object that describes the formatting.</p>
<script>
var n = new Number(1000000);
var myObj = {
style: "currency",
currency: "EUR"
}
document.write(n.toLocaleString("en-GB", myObj));
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_tolocalestring_num_options by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:31 GMT -->
</html>