File tree Expand file tree Collapse file tree
Sprint-3/4-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments