Skip to content

Commit 0671c48

Browse files
committed
rewrite the correct answer for Q(e)
1 parent bfafdef commit 0671c48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ function formatTimeDisplay(seconds) {
3131
// =============> write your answer here : 1, because remainingSeconds is 1 on python tutor.
3232

3333
// 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 : "00", because num is converted to string and padded to 2 characters with "0". That's mean "1" becomes "01".
34+
// =============> write your answer here :
35+
// "01", because the number 1 is converted to a string ("1").Then padStart(2, "0") makes sure it has 2 characters by adding "0" at the start, so "1" becomes "01".

0 commit comments

Comments
 (0)