Skip to content

Commit b6de5f3

Browse files
committed
Add explanation for first call to pad function return value
1 parent fb5b6b5 commit b6de5f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ console.log("The return value of pad when called for first time is:", firstRetur
5454

5555
// c) What is the return value of pad when it is called for the first time?
5656
// =============> write your answer here
57+
// For the first call to 'pad', 'num' is '0'
58+
// The pad function will return '00' because it pads single-digit numbers with a leading zero
5759

5860
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
5961
// =============> write your answer here

0 commit comments

Comments
 (0)