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
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,9 @@ console.log(result);
30
30
31
31
32
32
// 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
34
34
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
35
35
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
37
37
the logic breaks where we need to give the user a message to enter a valid number
0 commit comments