Responsive calculator using basic html, js, css.

Please log in to post a comment
Log in with GitHubCommunity feedback
- @Specticall
Hi, I noticed that whenever I tried typing more than 3 numbers behind a comma, it wouldn't let me. I think this behavior is caused by the toLocaleString method, you could probably take a look into that.
I also had a similar problem, my solution was to create my own number formatting function by using a loop, then unshift each of the number into an array while adding a "." every 3 iteration.
Hope this helps!
PS : You can check the code for the number formatting on my version to this project, its at the index.js file, line 329.
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord