Skip to content

Commit 029bd41

Browse files
authored
Add comments for time-format.js questions
1 parent 7ab586c commit 029bd41

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,21 @@ function formatTimeDisplay(seconds) {
2222

2323
// a) When formatTimeDisplay is called how many times will pad be called?
2424
// =============> write your answer here
25+
// [ChunYanWong] 3
2526

2627
// Call formatTimeDisplay with an input of 61, now answer the following:
27-
2828
// b) What is the value assigned to num when pad is called for the first time?
2929
// =============> write your answer here
30+
// [ChunYanWong] 0
3031

3132
// c) What is the return value of pad is called for the first time?
3233
// =============> write your answer here
34+
// [ChunYanWong] 00
3335

3436
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
3537
// =============> write your answer here
38+
// [ChunYanWong] pad(remainingSeconds) where remainingSeconds = 1
3639

3740
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
3841
// =============> write your answer here
42+
// [ChunYanWong] 01

0 commit comments

Comments
 (0)