Skip to content

Commit 4b0936e

Browse files
updated the output value on line 35
1 parent 3c5ca53 commit 4b0936e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-2/3-mandatory-interpret/2-time-format.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ console.log(result);
3232
/*whole positive value: for the 8784 seconds the formatted duration would be fine 2:26:24 and the code would be working as expected
3333
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
3434
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
3636
the logic breaks where we need to give the user a message to enter a valid number
3737
*/

0 commit comments

Comments
 (0)