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
{{ message }}
Repository navigation
Commit 64e56f7
Browse filesBrowse the repository at this point in the historyBrowse files
// The variable result shows the total remaining duration of a movie in terms of hours, minutes and seconds. We can also call it remainingTime.
29
29
30
30
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
31
-
// The movieLength code will work work with all kinds of number. That is integers and floats. It will not work with strings
31
+
// When using -8784, I had the same answers with 8784, except they were all negative numbers. -2:-26:-24
32
+
// When using 87.84, I had 0:1:27.840000000000003 which is still a readable time. But it doesn't round up the decimal numbers.
33
+
// When using the String "8784", I had 2:26:24 which is the same answer as when I used 8784. Javascript is converts strings to integers automatically when subtracting
34
+
// When using the string "hello", I get the outcome NaN:NaN:NaN which means "Not a Number". the string hello can't work in divisions.
0 commit comments