We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8d606 commit b185d08Copy full SHA for b185d08
Sprint-2/4-mandatory-interpret/time-format.js
@@ -4,8 +4,8 @@ function pad(num) {
4
5
function formatTimeDisplay(seconds) {
6
const remainingSeconds = seconds % 60;
7
- const totalMinutes = (seconds - remainingSeconds) / 60; //1
8
- const remainingMinutes = totalMinutes % 60; //1
+ const totalMinutes = (seconds - remainingSeconds) / 60;
+ const remainingMinutes = totalMinutes % 60;
9
const totalHours = (totalMinutes - remainingMinutes) / 60;
10
11
return `${pad(totalHours)}:${pad(remainingMinutes)}:${pad(remainingSeconds)}`;
0 commit comments