Calculator app using React Js Library app😎😎😎
Design comparison
Solution retrospective
I am still having issues when it comes to negative divisions eg -12/3 gives wrong output
Altho i will still work on it
Community feedback
- Account deleted
Hello @PrintJetro,
I'm planning on doing this challenge in the future so reviewing your solution was a great help in understanding some of the requirements, so thank you for that.
I'll just list a few thoughts as I go through your app.
Try to follow the design as closely as possible. I try to imagine that the frontend mentor challenge is your boss or a client with exact instructions that you must follow. It can be frustrating but it will push you to learn more if you fulfill the challenge requirements exactly.
Great. 9x6 = 54 and. 1000 + 444 = 1444. You have a calculator. Congrats!
One final note, don't add more work for yourself than what the specification states. For example, there's no need to style some of the buttons red after disabling them. That way you write less code and the user will intuitively understand what you mean when those particular keys don't provide any function and the output window shows no change. :) This seems counterintuitive to making things interactive but users generally understand what a calculator is... You were right to prevent another operator key from being clicked twice since ++, --, xx, and // make no sense. Good catch.
Keep up the good work and happy coding.
0
Please log in to post a comment
Log in with GitHubJoin 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