Skip to content

Commit 60302b2

Browse files
committed
Clarify difference between movieLength and movieDuration
1 parent dc2278c commit 60302b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ console.log(result);
2828
// e) What do you think the variable result represents? Can you think of a better name for this variable?
2929
// It represents the final time format of the movie in hours, minutes, and seconds.
3030
// A clearer name would be something like movieDuration.
31+
// movieLength is the total time in seconds.
32+
// movieDuration is the final time written as hours:minutes:seconds.
33+
// movieLength is the raw number, movieDuration is the readable version.
3134

3235
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
3336
// I tried running different numbers and it still works, even when the value is negative.

0 commit comments

Comments
 (0)