Skip to content

Commit 0e24e1b

Browse files
committed
should all be good this time
1 parent cae3827 commit 0e24e1b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sprint-2/4-mandatory-interpret/time-format.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,23 @@ console.log(formatTimeDisplay(61))
1818
// Questions
1919

2020
// a) When formatTimeDisplay is called how many times will pad be called?
21+
// =============> write your answer here
2122
// Pad willo be called 3 times
2223

2324
// Call formatTimeDisplay with an input of 61, now answer the following:
2425

2526
// b) What is the value assigned to num when pad is called for the first time?
27+
// =============> write your answer here
2628
// "null"
2729

2830
// c) What is the return value of pad is called for the first time?
31+
// =============> write your answer here
2932
// "00"
3033

3134
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
35+
// =============> write your answer here
3236
// it is assined 1 because 61 - 60 leaves 1 as a remainder
3337

3438
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
39+
// =============> write your answer here
3540
// the return value is "01" because it is padded to at the start to be a minimum string length of 2

0 commit comments

Comments
 (0)