Skip to content

Commit 233b1a0

Browse files
committed
modified answer of 4-mandatory-interpret time-format.js
1 parent 9424a96 commit 233b1a0

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,19 @@ console.log(formatTimeDisplay(61));
2323
// Questions
2424

2525
// a) When formatTimeDisplay is called how many times will pad be called?
26-
// =============> 4
26+
// =============> 3
2727

2828
// Call formatTimeDisplay with an input of 61, now answer the following:
2929

3030
// b) What is the value assigned to num when pad is called for the first time?
31-
// =============> 1
31+
// =============> 0
3232

3333
// c) What is the return value of pad when it is called for the first time?
34-
// =============> "01"
34+
// =============> "00"
3535

3636
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
37-
// =============> 0. The last calling of pad is pad(totalHours). the calculation is 1 (totalMinutues) - 1 (remainingMinutes. The result is 0.)
37+
// =============> 1. The last calling of pad is pad(remainingSeconds).
3838

3939
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
40-
// =============> 1. pad(remainingSeconds is the last calling foe pad.
40+
// =============> "01". after pad(remainingSeconds) which is the last value returned.
41+
// 1 convert to "01" in function pad(num.)

0 commit comments

Comments
 (0)