You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-2/3-mandatory-interpret/2-time-format.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,6 @@ console.log(result);
32
32
/*whole positive value: for the 8784 seconds the formatted duration would be fine 2:26:24 and the code would be working as expected
33
33
under 60 seconds: 59 seconds would assign the hours and minutes both as 0s resulting 0:0:59 instead of the normal formatted way 00:00:59 but still correct
34
34
zero value: the formatted duration would also be correct 0:0:0 even though it is an unusual value it still show that it can handle it
35
-
Negative value: for the -8784 seconds would give us an output of -2:-26:-29 which is not a valid format and doesn't make any sense
35
+
Negative value: for the -8784 seconds would give us an output of -2:-26:-24 which is not a valid format and doesn't make any sense
36
36
the logic breaks where we need to give the user a message to enter a valid number
0 commit comments