Front End Development Libraries Projects - Build a 25 5 Clock

Test #8 for this project returns the following error:

My clock seems to display the proper time remaining in the proper format, could anybody explain what issue this error is pointing to?

Thanks in advance!

Code at the link below:

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Front End Development Libraries Projects - Build a 25 + 5 Clock

Link to the challenge:

its complaining about “formatted time” but “on clock” but it seems fine to me!!
i tried to use “modulus” on “minutes” as you have done it on “seconds” but no effect on outcome

i also noticed, you used Math.floor on your “minute” without that “it shows” bad string for a “timer” error,

i also saw in app initial state you are using somewhat different “values” for timers (e.g. timeLeft: 1500), i suspect “conversions” of them and then in turn for “output” its not aligning currently for test case!!

i would recommend you re-consider your “timer” string, i would have given you my more precise two cents on it, but thats what i could offer for now!!

in my attempt i used something like this, and i saw you have done something similar
sessionTime < 10 ? "0" + sessionTime + ":00" : sessionTime + ":00"

happy coding :slight_smile:

I think it’s because the test expects time-left to change when you increase/decrease the session/break time. It does not wait for the timer to run before checking time-left.

It clicks the increase session button 35 times and immediately after checks the time-left.

You can look at the example project to see the behavior I’m talking about if it isn’t clear.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.