Skip to content

Commit a1cc998

Browse files
correct the answer for vlue assigned to num
1 parent 760800c commit a1cc998

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Sprint-3/4-mandatory-interpret/time-format.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function pad(num) {
2+
console.log(num)
23
let numString = num.toString();
34
while (numString.length < 2) {
45
numString = "0" + numString;
@@ -28,7 +29,7 @@ console.log(formatTimeDisplay(61));
2829
// Call formatTimeDisplay with an input of 61, now answer the following:
2930

3031
// b) What is the value assigned to num when pad is called for the first time?:
31-
// =============> write your answer here: ***Answer*** : The value assigned to num =00.
32+
// =============> write your answer here: ***Answer*** : The value assigned to num = 0.
3233

3334
// c) What is the return value of pad when it is called for the first time?
3435
// =============> write your answer here: ***Answer*** :The value of pad when it is called for the first time is "00".

0 commit comments

Comments
 (0)