Design comparison
SolutionDesign
Community feedback
- @codercreativePosted 2 months ago
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 helpful0
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