File tree Expand file tree Collapse file tree
Sprint-1/3-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments