Skip to content

Commit b85aff0

Browse files
Answer question e
1 parent 300176d commit b85aff0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
// ─────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)