Skip to content

Commit cbe3cb0

Browse files
committed
changes
1 parent fc6cdad commit cbe3cb0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ console.log(result);
2929
// The expression movieLength % 60 calculates the remainder when movieLength is divided by 60. This gives the number of seconds remaining after converting the total length of the movie into minutes and hours.
3030
// Interpret line 4, the expression assigned to totalMinutes calculates the total number of minutes in the movie by subtracting the remaining seconds from the total length of the movie and dividing by 60.
3131
// The variable result represents the formatted string of the movie length in hours, minutes, and seconds. A better name for this variable could be formattedMovieLength or movieLengthString.
32+
//the code will not work correctly for all values of movieLength.
3233
// experimenting with diferent values. It works correctly for non-negative whole numbers (integers) representing seconds.

0 commit comments

Comments
 (0)