Calculator app with 3 styles

Solution retrospective
Built with
- ReactJS
- Typescript
- Semantic HTML5 markup
- Flexbox
Let me know if you have any recommendations 🙏🏻
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vovka8101
Hi, congratulations on completing this challenge! But I noticed a little bug which is associated with JavaScript... For example if I want to calculate 2.3 - 1, I'll get 1.2999999... instead of 1.3. So, to fix that problem you can use: parseFloat(result.toFixed(4)). By using this approach you'll get numbers with maximum of 4 decimal places. Now 2.3 - 1 = 1.3; 2.333 - 1 = 1.333.
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