How to insert the Euro sign in Javascript

August 8th | By | Back to Blog

I had to dynamically insert a price of some product using javascript and first I tried adding the it like I would have done through PHP

"&#8364"

but it just displayed that in the DOM as a string so instead I used

"\u20ac"

and it worked like a charm.