DEV Community

loading...

Discussion on: Vanilla JavaScript String to Number

Collapse
craignicol profile image
craignicol

Worth knowing that this depends on the user's browser locale. 13,37 is a valid number in French and German, whereas 13.37 is not.

Collapse
dailydevtips1 profile image
Chris Bongers Author

You are right, there is the option to use locales on strings and numbers before. but your right good to keep this in mind!

Forem Open with the Forem app