Design comparison
SolutionDesign
Community feedback
- @besttlookkPosted over 2 years ago
hi, Nice work Following are some points i like to make:
- When user already chose an operation like (5 + 5) and againg click on ("+") rather than writing like this(5 + 5 + 5) try to first compute the previous result and write like this(10 + 5).
- Do not print any operation without value. like when we directly click on ("+") without having a number to add on, it makes no sense to print just (+)
- Do not let user add operation once an operation is already been selected. Yes you can replace but do not append like this(+++++).. 4.Do not let the output be NaN.
- Also center the calculatot w.rt. screen. You can use flexbox do do that.
I have also completed this challenge. Here is the link for your reference
https://www.frontendmentor.io/solutions/calculator-with-theme-using-vanilla-ts-scssgrid-and-bem-html-vite-Skpx1fDm9
Good luck,
#happyCoding
0
Please log in to post a comment
Log in with GitHubJoin 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