DEV Community

Discussion on: Vanilla JavaScript String to Number

Collapse
 
craignicol profile image
Craig Nicol (he/him)

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

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