Skip to content

Commit b986ff3

Browse files
author
JorvanW
committed
made changes to answers in line 25 and 28 for 2-time-format
1 parent 3001dbd commit b986ff3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ console.log(result);
2222
//movie % 60 represents the remainder of the division of movieLength by 60.
2323

2424
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
25-
// The expression is an Assignment operator that assigns its right hand side value and equation to the variable on the left hand side.
25+
// totalMinutes is movieLength minus remainingMinutes, that sum is then minus by remainingMinutes then divided by 60.
2626

2727
// e) What do you think the variable result represents? Can you think of a better name for this variable?
28-
// The variable result represents the total hours,minutes and seconds of the movie. A better name for this could be runtime or duration.
28+
// The variable result represents the total hours,minutes and seconds of the movie. A better name for this is formattedMovieLength.
2929

3030
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
3131
// This code will not work for values of movieLength that are less than 60 seconds due to it needing to divide by 60 to get minutes and hours.

0 commit comments

Comments
 (0)