We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b451c commit a959ad7Copy full SHA for a959ad7
1 file changed
Sprint-2/4-mandatory-interpret/time-format.js
@@ -40,3 +40,5 @@ console.log(formatTimeDisplay(61));
40
41
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
42
// =============> 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