There was an error while loading. Please reload this page.
1 parent ff40515 commit 5d51991Copy full SHA for 5d51991
1 file changed
Sprint-2/3-mandatory-interpret/2-time-format.js
@@ -1,4 +1,4 @@
1
-const movieLength = 8784; // length of movie in seconds
+const movieLength = -60; // length of movie in seconds
2
3
const remainingSeconds = movieLength % 60;
4
const totalMinutes = (movieLength - remainingSeconds) / 60;
@@ -22,4 +22,4 @@ 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
+// give the desired output for example if i give -60
0 commit comments