Skip to content

Commit a959ad7

Browse files
Committing the ans to e) for 4-mandatory-interpret
1 parent 54b451c commit a959ad7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ console.log(formatTimeDisplay(61));
4040

4141
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
4242
// =============> write your answer here
43+
// The return value is "01" - pad converts the number to a string and ensures it has at least 2 digits using padStart(2, "0")
44+
// Since "1" has only one digit, a leading zero is added so the value is then "01"

0 commit comments

Comments
 (0)