What is the relation between Number.prototype.toLocaleString() and Intl.NumberFormat.prototype.format?
<p>We are trying to use localization support in our application and looking at the <code>toLocaleString()</code>. We also had a look at <code>Intl.NumberFormat</code> and its format method.</p>

<p>Do they have any relation? Which one is better to use?</p>