File tree Expand file tree Collapse file tree
Sprint-2/3-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ const totalHours = (totalMinutes - remainingMinutes) / 60;
99const result = `${ totalHours } :${ remainingMinutes } :${ remainingSeconds } ` ;
1010console . log ( result ) ;
1111
12- //A.There are six variable declararions
12+ //A.There are six variable declarations
1313
14- //B. no function calls
14+ //B. one function call (console.log())
1515
1616//C.The % represents a remainder. The operator returns the remainder leftover when one operand which in
1717// this cas is movieLength is divided by a second operand in this case 60%.
1818
19- // D.it means it is changing the value that was in second into minute by dividing it 60 after the top calculation makes it whole number.
19+ // D.it means it is changing the value that was in second into minute by dividing it 60 after the top
20+ // calculation makes it whole number.
2021
2122//E. It represents the duration of the movie.movieLength/movieDuration.
2223
23- // f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
24-
25- // yes it works, i experimented it with various values. I found it to be working properly.
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
You can’t perform that action at this time.
0 commit comments