Skip to content

Instantly share code, notes, and snippets.

@yanknudtskov
Created March 4, 2020 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanknudtskov/32fbfc706208844492881d161cc4491a to your computer and use it in GitHub Desktop.
Save yanknudtskov/32fbfc706208844492881d161cc4491a to your computer and use it in GitHub Desktop.
Formatting currency in JavaScript
total.toLocaleString("da-DK", {
style: "currency",
currency: "DKK"
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment