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 | Nextjs, styled components and localStorage

@p-alex

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


I would love to hear any kind of feedback from you! Happy coding!

Community feedback

P
tediko 6,580

@tediko

Posted

Hello, Alex Daniel! 👋

Good effort on this challenge! Everything works good and responds well. I finished this challenge today also so take a look if you want. What I'd suggest is:

  • Display some error message after user divide by zero instead of default javascript "infinity".
  • After dividing by zero reset your calculator so when I try to start again my calculations it doesn't add numbers to "Infinity" string.

Good luck with that, have fun coding! 💪

1

@p-alex

Posted

Thanks for the suggestions @tediko! I'll fix it!

0
P

@PistolMihai

Posted

This is great!

1
P
Patrick 14,325

@palgramming

Posted

Looks like you have a good start to the challenge but one thing I see it you need to limit the "." so it cannot be entered more than once for a number entered. You currently can type this "3.2.2.2.2." into your calculator

0

@p-alex

Posted

@palgramming Thanks for the feedback. I fixed it.

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