Skip to content

Commit 2efa343

Browse files
explain the return value of using the function pad
1 parent 3fcb050 commit 2efa343

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ console.log(formatTimeDisplay(61))
3030
// =============> the first time pad was called with the totalHours
3131

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

3535

3636
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
@@ -39,5 +39,4 @@ console.log(formatTimeDisplay(61))
3939

4040
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
4141
// =============> "01"
42-
43-
42+
// the return value is 1 put as we are using pad wouldbe adding leading "0"

0 commit comments

Comments
 (0)