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

Mipsmonsta• 150

@mipsmonsta

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


Let me know about the functionality and look and feel.

I have yet to implement the mobile (responsive) version.

Community feedback

@RahulKumarGautam1636

Posted

It gives 0 when try to calculate 4x04.4 The zero is causing this error. Find a way to prevent user from entering zero after an operator if he does not enters decimal (.) just after that zero.

0

Mipsmonsta• 150

@mipsmonsta

Posted

@RahulKumarGautam1636 Solved. In the case of user entering "4x04.4", the app will convert to "4x4.4" by removing the trailing "0" in "04".

1

@RahulKumarGautam1636

Posted

@mipsmonsta nice work but I can still enter 2..... by pressing (.) and an operator consecutively. Not a big problem but creates a chance for error.

0
Mipsmonsta• 150

@mipsmonsta

Posted

@RahulKumarGautam1636 Solved. App.js now make the check and prevent adding "." to "2.33+". Tks!

0

@RahulKumarGautam1636

Posted

@mipsmonsta it's almost perfect, keep up the good work.

0
P
Patrick• 14,325

@palgramming

Posted

well you can currently type in 1.2.1.2 so you need a check to keep it from allowing multiple ....... periods from being entered

also it would be nice to add keyboard functionality

This is not a easy challenge to get all the functionality and logic correct

0

Mipsmonsta• 150

@mipsmonsta

Posted

@palgramming bug fixed to prevent case of 1.2.1.2 i.e. multiple decimal points for a number.

0
Gamaliel Burgos• 330

@Gamygams1234

Posted

When I am using it, this calculator shows the sign in the Input when I press the sign. Try and make a solution that doesn't do that and works like an actual calculator.

0

Mipsmonsta• 150

@mipsmonsta

Posted

@Gamygams1234 Show the sign in the input allow the user to know the last operator entered. This is copying some calculator app in mobile phones. The advantage is also that if a sign is entered, and another different sign is entered, the latter will overwrite the sign - for quick correction. So show the sign input to the user is crucial in my design.

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