
Design comparison
SolutionDesign
Please log in to post a comment
Log in with GitHubCommunity feedback
- @codercreative
Hi Rabel,
I love your solution! 💫
Perhaps consider...
-- using switch statements to replace your
if
statements for better clarity and efficiency.-- using template literals to conditionally add an "s" to hrs when the value is not equal to 1.
-- adding comments in your code and ensuring consistent indentation and formatting for better readability.
Happy Coding! 🥳
Marked as helpful
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