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 with vanilla JS and CSS

@Richard2957

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


The logic of calculators, especially when it comes to chaining functions, is quite fun. Division by zero gives and Infinity error - I left it like this to say infinity because I thought it looked good.

Community feedback

@jboat86

Posted

Hello Richard

Great app! I love how you've applied multiple themes and I love the dark purple one, in particular. However, to make code more readable and well structured it's best to put your js code into a separate file eg: app.js (external js). Lastly, consider applying semantic HTML in your mark-up for example for your button you could add a <button> tag as opposed to a <div>. Hope this helps.

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