There was an error while loading. Please reload this page.
1 parent 760800c commit a1cc998Copy full SHA for a1cc998
1 file changed
Sprint-3/4-mandatory-interpret/time-format.js
@@ -1,4 +1,5 @@
1
function pad(num) {
2
+ console.log(num)
3
let numString = num.toString();
4
while (numString.length < 2) {
5
numString = "0" + numString;
@@ -28,7 +29,7 @@ console.log(formatTimeDisplay(61));
28
29
// Call formatTimeDisplay with an input of 61, now answer the following:
30
31
// b) What is the value assigned to num when pad is called for the first time?:
-// =============> write your answer here: ***Answer*** : The value assigned to num =00.
32
+// =============> write your answer here: ***Answer*** : The value assigned to num = 0.
33
34
// c) What is the return value of pad when it is called for the first time?
35
// =============> write your answer here: ***Answer*** :The value of pad when it is called for the first time is "00".
0 commit comments