How to format a number as currency using CSS ?
Approach: In the code, the CSS class
toLocaleString() returns a string with a language-sensitive representation of the number.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.