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 - Vanilla JS

P

@richardcyrus

Desktop design screenshot for the Calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


Feedback welcome. The calculator has just basic functionality. It only allows one operation at a time, and does not allow re-use of the previous solution value. You must hit reset between each calculation.

Community feedback

P
Patrick 14,305

@palgramming

Posted

Well .5 + .5 = 5.5 so that is not correct

also 3+3 = 6 but then you cannot hit the "x3=" and get 18

0

P

@richardcyrus

Posted

@palgramming Thank you. I've resolved the .5 + .5 issue. As stated in my original comment, this implementation of calculator does not allow using the solution of one calculation as the starting value of the next calculation.

0

@grmajik

Posted

Nice one. Few things I noticed.

  1. Subtraction does not work properly. It does addition instead.
  2. If you click on a number then press DEL, the number field is halved in size!

Good job. 💪

0

P

@richardcyrus

Posted

@grmajik Thanks. Both issues have been fixed.

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