Skip to content

Commit 9e6aff6

Browse files
committed
update movieLength variable name
1 parent 9ec9ff5 commit 9e6aff6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ console.log(result);
4343
Firstly it will evaluate bracket i.e (movieLength - remainingSeconds) and then divide the value by 60.
4444
*/
4545
// e) What do you think the variable result represents? Can you think of a better name for this variable?
46-
// The result represents the how long the movie is, in hours, minutes and seconds. It can named as "Duration".
46+
// The result represents the how long the movie is, in hours, minutes and seconds. It can named a "movieDurationHHMMSS".
4747
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
4848
// Yes, the code works for different values of movieLength and does not produce any errors. However, it does not always format
4949
// the output correctly. If the hours, minutes, or seconds are less than 10(e.g 5, 7), they are displayed as a single

0 commit comments

Comments
 (0)