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 || using css grid vanilla JS

soransh singhβ€’ 1,025

@soransh-singh

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


This is my first intermediate challenge. Really enjoyed doing this challenge.

There is a room for improvement, I should had used slider for theme switcher and calculator logic had become messy to cover all the logical error.

I think layout look nice.

Any feedback or comment would be appreciated on code or design.

Community feedback

Bazmulβ€’ 55

@MoBazmul

Posted

@soransh-singh, I love the design layout, it's perfect, though there are some bugs you need to fix, like you cannot do any operation on two decimal numbers and when you multiply a decimal number and an integer, the results returned is too big e.g., 0.2Γ—3, the answer displayed is 0.600000000000001...nice work

1

soransh singhβ€’ 1,025

@soransh-singh

Posted

@bazmul Thanks for the feedback really appreciate ....yhaa i will try to resolve them ... the code is messy so I have to clean the code and make it more readable... and Also this error will occur if you multiply 1.6x3

0
soransh singhβ€’ 1,025

@soransh-singh

Posted

@bazmul hey... I have resolved all the known issues ... thanks again for the feedback.

0
Faris Pβ€’ 2,810

@FarisPalayi

Posted

Hey, it looks fantastic. πŸ‘. Good job! Layout is responding nicely.

I caught a bug 🐞, You can't do decimal point calculations, for example, you can't do this: 0.2 - 0.1. When you click the dot button, the dot doesn't show up on the calculator display.

I can see that it only took you 2-3 days to complete this challenge. So, I think you did an excellent job tackling this challenge!

1

soransh singhβ€’ 1,025

@soransh-singh

Posted

@FarisPalayi thankss ... I will try to resolve it... Also you cannot do multiplication/division of two negative number πŸ˜‚πŸ˜‚πŸ˜‚

1
Faris Pβ€’ 2,810

@FarisPalayi

Posted

@soransh-singh oh, right, division/multiplication becomes a subtraction, right? πŸ˜‡. I was going to say addition doesn't work with that too. But -1+ -1 = -1-1, right? πŸ˜…

1
soransh singhβ€’ 1,025

@soransh-singh

Posted

@FarisPalayi yhaa ... alsoright now js code is so messsy that even i will not understand it after a week .... I think I should add different event listeners for "." And "-" sign to solve this issues and also to make code more readable (i should had paid attention to my algo classes πŸ˜‚πŸ˜‚)

1
Faris Pβ€’ 2,810

@FarisPalayi

Posted

@soransh-singh πŸ˜„πŸ˜‚

1
soransh singhβ€’ 1,025

@soransh-singh

Posted

@FarisPalayi hey... I resolved all the issues... thanks for the feedback

1
Faris Pβ€’ 2,810

@FarisPalayi

Posted

@soransh-singh yep. Everything is working perfectly πŸ‘. Well done !πŸ‘

1
soransh singhβ€’ 1,025

@soransh-singh

Posted

@FarisPalayi thanks ... also I am thinking of making it a PWA ... But don't know how to make one πŸ˜‚πŸ˜…

1
Faris Pβ€’ 2,810

@FarisPalayi

Posted

@soransh-singh Yep, me tooπŸ˜€,

Web.dev has great resources on PWA - Progressive Web Apps. I'm currently learning about PWAs using their resources. I think it's really good. Give it a try if you can.

1
soransh singhβ€’ 1,025

@soransh-singh

Posted

@FarisPalayi I will try it ... Thanks

1

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