Skip to content

Commit d87544b

Browse files
committed
answered question f regarding different movieLength values code.
1 parent 92b9bcc commit d87544b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Sprint-2/3-mandatory-interpret/2-time-format.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ console.log(result);
2626
// e) What do you think the variable result represents? Can you think of a better name for this variable?
2727
// 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?
2828
// 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

Comments
 (0)