
Design comparison
Solution retrospective
I'm most proud of code refactoring of reducer function.
What challenges did you encounter, and how did you overcome them?Several, however most problematic was a bug of calculateTotal and calculateTip functions and theirs return values. The problem was both of them worked fine up until values were reset to zero. Solution then was about truthy and falsy values, the fact that javascript interprets "return 0" as return boolean false and not number 0. Obviously, problems were with output but were solved by addressing falsy interpreted value.
What specific areas of your project would you like help with?All comments r welcome :)
Community feedback
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