Skip to content

Commit 7d884f5

Browse files
author
russom
committed
Update answers with additional explanations.
1 parent 5b9c56b commit 7d884f5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ console.log(formatTimeDisplay(61))
4141
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
4242
// =============> write your answer here
4343

44-
// The value assigned to num is 1. This is because 1 is the last character in the string 61
44+
// Seconds % 60 on line 10 gives the leftover 1, and that 1 goes into remainingSeconds. The last call is pad(remainingSeconds), so num is 1.
4545

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

49-
// The return value is "01". when pad is called for the last time it takes the last character of the string 61.
50-
// After checking remainingSeconds length which is less than 2 it adds a "0" and returns "01"
49+
// It gets remainingSeconds, which is 1.
50+
// After checking remainingSeconds length which is less than 2 it adds a "0" and returns "01"

0 commit comments

Comments
 (0)