File tree Expand file tree Collapse file tree
Sprint-2/3-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,12 @@ console.log(formattedMovieLength);
2121// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
2222
2323// e) What do you think the variable result represents? Can you think of a better name for this variable?
24-
24+ // ANSWER: It represents the movie length written as a time string in
25+ // hours:minutes:seconds format. For 8784 seconds it gives "2:26:24".
26+ //
27+ // Better name: formattedMovieLength
28+ // It says what the value is (the movie length) and that it is
29+ // formatted as a time, which is clearer than "result".
2530// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
2631
2732// ─────────────────────────────────────────────────────────────
You can’t perform that action at this time.
0 commit comments