Skip to content

Commit 9763a7b

Browse files
committed
line 40 answer fixed
1 parent b33d620 commit 9763a7b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// const movieLength = 3661; // length of movie in seconds
2-
const movieLength = 100.65;
2+
const movieLength = -100;
33

44
const remainingSeconds = movieLength % 60;
55
const totalMinutes = (movieLength - remainingSeconds) / 60;
@@ -37,4 +37,4 @@ console.log(result);
3737

3838
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
3939

40-
// Answer: It will work for integer values and will give us clear and clean result using this code. However, the result would not be clean as this using float values
40+
// Answer: Any whole number from 0 up works, but decimals and negatives numbers will break it.

0 commit comments

Comments
 (0)