Skip to content

Commit eca4da2

Browse files
committed
explained what the expression on line 3 is doing
1 parent efa997d commit eca4da2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ console.log(result);
1919

2020
// c) Using documentation, explain what the expression movieLength % 60 represents
2121
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators
22+
// 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).
23+
2224
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
2325

2426
// e) What do you think the variable result represents? Can you think of a better name for this variable?

0 commit comments

Comments
 (0)