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
Copy file name to clipboardExpand all lines: Sprint-2/3-mandatory-interpret/2-time-format.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,3 +26,4 @@ console.log(result);
26
26
// e) What do you think the variable result represents? Can you think of a better name for this variable?
27
27
// The variable result will print a template string showing the movie length as time in hours, time in minutes and time in seconds using a template string. I think movieDuration is a bit more descriptive than result?
28
28
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
29
+
//The code will work if movieLength is a whole number but it wouldn't work with a decimal number or likely not as expected if it is string unless it contains a number.
0 commit comments