Skip to content

Commit 9953c8b

Browse files
committed
Add explanation for last call to pad function
1 parent 36e4464 commit 9953c8b

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
@@ -61,6 +61,8 @@ console.log("The value assigned to num when pad is called for the last time is:"
6161

6262
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
6363
// =============> write your answer here
64+
// The last call is 'pad(remainingSeconds)' which is '61 % 60'
65+
// since 61 divided by 60 leaves a remainder of 1, it means the value '1' is assigned to 'num' in the last call of pad
6466

6567
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
6668
// =============> write your answer here

0 commit comments

Comments
 (0)