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-2/4-mandatory-interpret/time-format.js
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,17 +22,23 @@ function formatTimeDisplay(seconds) {
22
22
23
23
// a) When formatTimeDisplay is called how many times will pad be called?
24
24
// =============> write your answer here
25
+
// a) 3 times
25
26
26
27
// Call formatTimeDisplay with an input of 61, now answer the following:
27
28
28
29
// b) What is the value assigned to num when pad is called for the first time?
29
30
// =============> write your answer here
31
+
// b) 0
30
32
31
33
// c) What is the return value of pad is called for the first time?
32
34
// =============> write your answer here
35
+
// c) "00"
33
36
34
37
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
35
38
// =============> write your answer here
39
+
// d) 1, because the last time pad is called it is for the remaining seconds which is 1 second in this case
36
40
37
41
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
38
42
// =============> write your answer here
43
+
44
+
// e) "01", because the last time pad is called it is for the remaining seconds which is 1 second in this case, and pad adds a leading zero to make it two digits
0 commit comments