Skip to content

Commit 011292b

Browse files
Committing the ans to b) for 4-mandatory-interpret
1 parent 2daa649 commit 011292b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ function formatTimeDisplay(seconds) {
1111
return `${pad(totalHours)}:${pad(remainingMinutes)}:${pad(remainingSeconds)}`;
1212
}
1313

14+
console.log(formatTimeDisplay(61));
15+
1416
// You will need to play computer with this example - use the Python Visualiser https://pythontutor.com/visualize.html#mode=edit
1517
// to help you answer these questions
1618

@@ -24,6 +26,7 @@ function formatTimeDisplay(seconds) {
2426

2527
// b) What is the value assigned to num when pad is called for the first time?
2628
// =============> write your answer here
29+
// The value assigned to num for the first time that it is called is 0 (totalHours = 0)
2730

2831
// c) What is the return value of pad is called for the first time?
2932
// =============> write your answer here

0 commit comments

Comments
 (0)