Skip to content

Commit a68f546

Browse files
committed
Revert "Clarify pad function behavior in comments"
This reverts commit 56b74d5.
1 parent ad6a628 commit a68f546

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,18 @@ function formatTimeDisplay(seconds) {
1717
// Questions
1818

1919
// a) When formatTimeDisplay is called how many times will pad be called?
20-
// =============> pad will be called 3 times
20+
// =============> write your answer here
2121

2222
// Call formatTimeDisplay with an input of 61, now answer the following:
2323

2424
// b) What is the value assigned to num when pad is called for the first time?
25-
// =============> the value assigned to num is 0
25+
// =============> write your answer here
2626

2727
// c) What is the return value of pad is called for the first time?
28-
// =============> the return value of pad is called for the first time is "00"
28+
// =============> write your answer here
2929

3030
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
31-
// =============> the value assigned to num is 1
32-
// because the last time pad is called for the remainingSeconds holding the value 1
33-
// return pad(remainingSeconds)
34-
// function pad(1){
31+
// =============> write your answer here
3532

3633
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
37-
// =============> the return value of pad is called for the last time is "01"
38-
// because the argument passed to the pad parameter is the value of the remainingSeconds wich is 1
39-
// function pad(1){
40-
// return 1.toString().padStart(2, "0");
41-
// return "1".pad(2,"0");
42-
// return "01"
43-
//}
34+
// =============> write your answer here

0 commit comments

Comments
 (0)