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
25
// totalMinutes is assigned a value of the result from (movieLength - remainingSeconds) / 60;
26
+
//it means changing the value that was in second into minute by dividing it 60 - making it a whole number
25
27
26
28
// e) What do you think the variable result represents? Can you think of a better name for this variable?
27
29
// 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
30
+
// It represents the MovieDuration
28
31
29
32
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
30
33
//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