Skip to content

Commit da4d7e7

Browse files
updated the explanation to meet with function return
1 parent a4f20f2 commit da4d7e7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ console.log(formatTimeDisplay(61));
2727
// Call formatTimeDisplay with an input of 61, now answer the following:
2828

2929
// b) What is the value assigned to num when pad is called for the first time?
30-
// =============> the first time pad was called with the totalHours the value is 00:01:01
30+
// =============> the first time pad was called with 61 the value is 00:01:01
3131

3232
// c) What is the return value of pad is called for the first time?
3333
// =============> "00"
3434

3535
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
3636
// =============> 1
37-
// the last time, pad() is called with the remaining seconds which is value "1"
37+
// the last time, pad() is called with the remaining seconds which is value 1
3838

3939
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
40-
// =============> "01"
41-
// the return value is 1 put as we are using pad would be adding leading "0"
40+
// =============> 1
41+
// the return value is "1" but as we are using pad would be adding a leading of "0" to become "01"

0 commit comments

Comments
 (0)