Skip to content

Commit e11351d

Browse files
committed
Clarify explanation of totalMinutes calculation in time format conversion
1 parent 6c0dd00 commit e11351d

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
@@ -35,6 +35,7 @@ console.log(result);
3535
// d) totalMinutes = (movieLength - remainingSeconds) / 60 in this expression
3636
// 1. (movieLength - remainingSeconds) the values inside the parenthesis is calculated first then it is divided by 60
3737
// then the value of expression is assigned to the var totalMinutes
38+
// so the expression simply means that we are trying to convert the movie length in seconds into full minutes by removing the remaining seconds
3839

3940
// e) the variable result represents the formatted time in hours:minutes:seconds. I would rename it time
4041

0 commit comments

Comments
 (0)