Skip to content

Commit 344c8ac

Browse files
author
kohanman
committed
Sprint 2 | Coursework 4.1 final
1 parent 08a4679 commit 344c8ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ console.log(formatTimeDisplay(61));
2828

2929
// c) What is the return value of pad is called for the first time?
3030
// =============> write your answer here
31-
//0
31+
//00
3232

3333
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
3434
// =============> write your answer here
35-
//000
35+
//1 which is remainder from 61 % 60 from remainingSeconds constant
3636

3737
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
3838
// =============> write your answer here
39-
//0
39+
//01 because if number is less than 10 the return pads one 0 at the start

0 commit comments

Comments
 (0)