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 @@ -26,13 +26,14 @@ console.log(result);
2626
2727
2828// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
29- // the expression evaluates to total number of movie minutes by subtracting the number of seconds.
29+ // The expression evaluates to total number of movie minutes by subtracting the number of seconds.
3030
3131
3232// e) What do you think the variable result represents? Can you think of a better name for this variable?
3333// The variable result represent the duration of thr movie in hours,minutes and seconds.
3434// A better name fot this variable is movieDuration
3535
36+
3637// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
37- // The code will work for all the values of movieLength. But if we use negative numbers ut will gie us an invalid duration.
38+ // The code will work for all the values of movieLength. But if we use negative numbers it will give us an invalid duration.
3839// Ex movieLength = -8784 movieDuration = -2: -26: -24
You can’t perform that action at this time.
0 commit comments