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
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
24
+
// totalMinutes is assigned a value of the result from (movieLength - remainingSeconds) / 60;
22
25
23
26
// e) What do you think the variable result represents? Can you think of a better name for this variable?
27
+
// I think its the total movie length with a timer. Based on research it appears to be template literal variable as it mixes static text with dynamic data. Sorry I don't fully understand this bit yet
24
28
25
29
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
30
+
//any number greater than zero returns a valid positive hour, minute or seconds result. Changing the length to 0 returns 0:0:0. Any negative length returns negative values
0 commit comments