File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Sprint-2/4-mandatory-interpret Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,21 @@ function formatTimeDisplay(seconds) {
1717// Questions
1818
1919// a) When formatTimeDisplay is called how many times will pad be called?
20- // =============> write your answer here
20+ // =============> pad is called 3 times — once for hours, once for minutes, and once for seconds.
21+
2122
2223// Call formatTimeDisplay with an input of 61, now answer the following:
2324
2425// b) What is the value assigned to num when pad is called for the first time?
25- // =============> write your answer here
26+ // =============> pad is first called for total hourse which is 0 hours
2627
2728// c) What is the return value of pad is called for the first time?
28- // =============> write your answer here
29+ // =============> the return value is "00"
2930
3031// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
31- // =============> write your answer here
32+ // =============> pad is called for total seconds at last time which is 1 seconds.
3233
3334// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
34- // =============> write your answer here
35+ // =============> the return value is "01".It pads "1" with a leading zero to ensure two digits.
36+
37+
You can’t perform that action at this time.
0 commit comments