Skip to content

Commit 32f4dc8

Browse files
committed
added suggested comments
1 parent a630a94 commit 32f4dc8

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
@@ -29,13 +29,15 @@ console.log(formatTimeDisplay(61));
2929

3030
// b) What is the value assigned to num when pad is called for the first time?
3131
// num is assigned value of totalHours when pad is called first time because js evaluates expressions from left to right
32+
// Therefore num will be assigned with 0 when it is called for the first time
3233

3334
// c) What is the return value of pad when it is called for the first time?
3435
// The return value will be "00"
3536

3637
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
3738
// num will be assigned the value of remainingSeconds when pad is called for the last time because js evaluates any expression
3839
// from left to right and the pad with argument remainingSeconds is found at the right end
40+
// Therefore num will be assigned with 1 when it is called for the last time
3941

4042
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
4143
// The return value of pad when it is called for the last time is "01"

0 commit comments

Comments
 (0)