Design comparison
SolutionDesign
Solution retrospective
Any feedback about my calculator regarding the javascript? Could have it been done in a simpler method?
Community feedback
- @MieszkoKowalikPosted over 3 years ago
Hey man. You should look up how to make responsive pages, as right now it will only work on specific desktop resolutions.
About the javaScript, you have written a lot of redundant code. As you can see all the ifs have the same code inside and only the percantage values change. Think about a way to put the percentage value into a variable, which will make the code much shorter and simplier.
Marked as helpful1
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