Skip to content

Commit fc798b1

Browse files
committed
test the code by changing the value of movieLength into decimal .
1 parent 5d51991 commit fc798b1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const movieLength = -60; // length of movie in seconds
1+
const movieLength = 90.5; // length of movie in seconds
22

33
const remainingSeconds = movieLength % 60;
44
const totalMinutes = (movieLength - remainingSeconds) / 60;
@@ -22,4 +22,7 @@ console.log(result);
2222
//E. It represents the duration of the movie.movieLength/movieDuration.
2323

2424
//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
25+
// 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

Comments
 (0)