Skip to content

Commit 706a763

Browse files
Complete function tracing exercise
1 parent 20b12f0 commit 706a763

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function formatTimeDisplay(seconds) {
1414

1515
return `${pad(totalHours)}:${pad(remainingMinutes)}:${pad(remainingSeconds)}`;
1616
}
17+
console.log(formatTimeDisplay(61));
1718

1819
// You will need to play computer with this example - use the Python Visualiser https://pythontutor.com/visualize.html#mode=edit
1920
// to help you answer these questions
@@ -27,6 +28,7 @@ function formatTimeDisplay(seconds) {
2728

2829
// b) What is the value assigned to num when pad is called for the first time?
2930
// =============> write your answer here
31+
// 3
3032

3133
// c) What is the return value of pad when it is called for the first time?
3234
// =============> write your answer here

0 commit comments

Comments
 (0)