@@ -24,10 +24,12 @@ console.log(result);
2424
2525// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
2626
27- // a) There are 6: movieLength, remainingSeconds, totalMinutes, remainingMinutes, totalHours, result.
28- // b) There is one: console.log.
29- // c) It is taking the movieLength and doing a remainder that is showing what is left after the vaule has been divided, in this case wil be 84.
30- // I found the info here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Remainder
31- // d) It is removing any extra seconds from the division by 60 so that is is showing as whole numbers without decimals.
32- // e) Result is showing the movies duration but broken down to hours:minutes:seconds, I think it should be movieDuration to help describe it better.
33- // f) Yes, it does work to show the lenght even if it is only in one section, though it does show values of 0, could clean it up to show nothing.
27+ /*
28+ a) There are 6: movieLength, remainingSeconds, totalMinutes, remainingMinutes, totalHours, result.
29+ b) There is one: console.log.
30+ c) It is taking the movieLength and doing a remainder that is showing what is left after the vaule has been divided, in this case wil be 84.
31+ I found the info here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Remainder
32+ d) It is removing any extra seconds from the division by 60 so that is is showing as whole numbers without decimals.
33+ e) Result is showing the movies duration but broken down to hours:minutes:seconds, I think it should be movieDuration to help describe it better.
34+ f) Yes, it does work to show the lenght even if it is only in one section, though it does show values of 0, could clean it up to show nothing.
35+ */
0 commit comments