Created
March 4, 2020 14:41
-
-
Save yanknudtskov/32fbfc706208844492881d161cc4491a to your computer and use it in GitHub Desktop.
Formatting currency in JavaScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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