Skip to content

Commit f3c67ac

Browse files
fixed the movieLength value in the explanation to match the input file
1 parent 6ae9f42 commit f3c67ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ console.log(result);
3030

3131

3232
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
33-
/*whole positive value: for the 8789 seconds the formatted duration would be fine 2:26:24 and the code would be working as expected
33+
/*whole positive value: for the 8784 seconds the formatted duration would be fine 2:26:24 and the code would be working as expected
3434
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
3535
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
36-
Negative value: for the -8789 seconds would give us an output of -2:-26:-29 which is not a valid format and doesn't make any sense
36+
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
3737
the logic breaks where we need to give the user a message to enter a valid number
3838
*/

0 commit comments

Comments
 (0)