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
0
Rabel• 190
@Rabelahmed
Posted
@codercreative thank you for the tips
0