Pomodoro Clock Animation

Hello guys, thank you all for always being my inspiration.
I have completed thePomodoro Clock project; I would love to get your feedback on the standard of code and how could I improve it.

Hello Sifatul,

Nicely done. :slight_smile:
Working as intended.
One thing I noticed is that your timer does not always contain two digit pairs.
e.g. Your time should look like 00:04 (Not 0:4)
image
You can fix this by concatenating ‘0’ string to your remaining time and slice from -2.

remainingTime = ('0' + min).slice(-2) + ':' + ('0' + sec).slice(-2);

Its better if you can add more comments to your code.

Cheers!!! :beers:

Thank you for your amazing feedback. :blush:

1 Like