Skip to content

Commit 09bea6c

Browse files
corrected my explanation of the returned and the pass value of pad
1 parent 3464400 commit 09bea6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ 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 61 the value is 00:01:01
30+
// =============> the value is 0 as the first call for pad was with totalHours
3131

3232
// c) What is the return value of pad is called for the first time?
3333
// =============> "00"
@@ -38,4 +38,4 @@ console.log(formatTimeDisplay(61));
3838

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