Skip to content

Commit 9cac48f

Browse files
committed
completed tasks in 4-mandatory-interpret/time-format.js
1 parent 98028d2 commit 9cac48f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Sprint-2/4-mandatory-interpret/time-format.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@ function formatTimeDisplay(seconds) {
1818

1919
// a) When formatTimeDisplay is called how many times will pad be called?
2020
// =============> write your answer here
21+
//pad is called 3 times
2122

2223
// Call formatTimeDisplay with an input of 61, now answer the following:
24+
formatTimeDisplay(61);
2325

2426
// b) What is the value assigned to num when pad is called for the first time?
2527
// =============> write your answer here
26-
28+
// 0
2729
// c) What is the return value of pad is called for the first time?
2830
// =============> write your answer here
29-
31+
// '00'
3032
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
3133
// =============> write your answer here
32-
34+
// 1
3335
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
3436
// =============> write your answer here
37+
// '01'
38+

0 commit comments

Comments
 (0)