There was an error while loading. Please reload this page.
1 parent 5d51991 commit fc798b1Copy full SHA for fc798b1
1 file changed
Sprint-2/3-mandatory-interpret/2-time-format.js
@@ -1,4 +1,4 @@
1
-const movieLength = -60; // length of movie in seconds
+const movieLength = 90.5; // length of movie in seconds
2
3
const remainingSeconds = movieLength % 60;
4
const totalMinutes = (movieLength - remainingSeconds) / 60;
@@ -22,4 +22,7 @@ console.log(result);
22
//E. It represents the duration of the movie.movieLength/movieDuration.
23
24
//F. No it doesnt work for all different values , I experimented it with -ve numbers and decimals.It doesnt
25
-// give the desired output for example if i give -60
+// give the desired output for example if
26
+// const movieLength = -60;
27
+// result = 0:-1:0, there is no -ve value in time
28
+// if const movieLength = 90.5;
0 commit comments