Calculator with keyBoard and previous operand access, transiton effect
Design comparison
Solution retrospective
finally completed this one. HTML and CSS part was a little bit easier, the challenging part was the JS code for calculation which took my 60% of total time because i wanted the have self written and error free calculation code that works exactly same as real calculator and also prevents user from entering wrong inputs. in this process i explored bunch of properties which I have never used before such as eval(), Number.isInteger(), parseFloat(), str.toFixed() and the Error handling. feel free to criticize or suggest anything if something left to improve and also let me know if you discover any error in calculation.
Community feedback
- @sivakumarkatari2020Posted over 3 years ago
Amazing transition effects brother!
0@RahulKumarGautam1636Posted over 3 years ago@sivakumarkatari2020 thank you bro, i hope you will do better than this 🙂🙂
0 - @julis923Posted over 3 years ago
Thanks for posting! I just completed this project too and found it to be a great challenge. Very smart to use eval() - I did it manually using smaller individual functions, which likely took a lot longer, lol! Calculation seems to be working well. I also like that you added the equation to the top of the solution screen.
Great job!
1@RahulKumarGautam1636Posted over 3 years ago@julis923 thank you for your valuable feedback 😊😊
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