Skip to content

Commit 589436f

Browse files
committed
fix function call
1 parent 632df6b commit 589436f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ function pad(num) {
77
}
88

99
function formatTimeDisplay(seconds) {
10-
formatTimeDisplay(61);
1110
const remainingSeconds = seconds % 60;
1211
const totalMinutes = (seconds - remainingSeconds) / 60;
1312
const remainingMinutes = totalMinutes % 60;
1413
const totalHours = (totalMinutes - remainingMinutes) / 60;
1514

1615
return `${pad(totalHours)}:${pad(remainingMinutes)}:${pad(remainingSeconds)}`;
1716
}
17+
console.log(formatTimeDisplay(61));
1818

1919
// You will need to play computer with this example - use the Python Visualiser https://pythontutor.com/visualize.html#mode=edit
2020
// to help you answer these questions

0 commit comments

Comments
 (0)