You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Remainder operator : calculates the remainder after dividing the movie length in seconds by 60
21
21
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
22
+
// It takes the remaining seconds away from the total movie length and divides by 60 to turn the seconds into minutes.
22
23
23
24
// e) What do you think the variable result represents? Can you think of a better name for this variable?
24
-
25
+
// - It represents the movie duration in hours, minutes, and seconds.
26
+
// - const movieDuration
25
27
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
28
+
// The code works with positive whole numbers for movieLength and changes them into hours, minutes, and seconds. Decimal or negative numbers may not give the correct result.
0 commit comments