Using JavaScript, what is correct approach to replace the dot to comma (For EU currency), for example:
2000.65 would be 2000,65 instead of 2,000.65
39.20 would be 39,20
I am not sure if cost.replace('.', ',') is the right way. Is there a better option?