Skip to content

Commit 7cf3da9

Browse files
committed
explained what the expression assigned to totalMinutes means.
1 parent eca4da2 commit 7cf3da9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ console.log(result);
2222
// the expression uses the remainder operator which returns the remainder left over when one value is divided by another. so here it is asking how many times the number 60 goes into the value stored in the variable movieLength and tell me what is left behind which is what will be stored in the variable remainingSeconds (24).
2323

2424
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
25-
25+
// The expression here is taking the value stored in remainingSeconds variable and subtracting it from the value stored in movieLength variable, then whatever this value is is divided by 60 and this final number is what gets stored in the variable totalMinutes.
2626
// e) What do you think the variable result represents? Can you think of a better name for this variable?
2727

2828
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer

0 commit comments

Comments
 (0)