Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Calculator App

@nejidevelops

Desktop design screenshot for the Calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Community feedback

@besttlookk

Posted

hi, Nice work Following are some points i like to make:

  1. 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).
  2. 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 (+)
  3. 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.
  4. 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 GitHub
Discord logo

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