You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/3-mandatory-interpret/2-time-format.js
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,22 @@ console.log(result);
12
12
// For the piece of code above, read the code and then answer the following questions
13
13
14
14
// a) How many variable declarations are there in this program?
15
+
// 6 variable declaration. Which are movieLength, remainingSeconds, totalMinutes, remainingMinutes, totalHours, result
15
16
16
17
// b) How many function calls are there?
18
+
// 1 functions, which is Console.log
17
19
18
20
// c) Using documentation, explain what the expression movieLength % 60 represents
21
+
// It represents the remainder expression. This means that the remainder operator returns the remainder left over when one operand is divided by a second operand.
0 commit comments