Skip to content

Commit b185d08

Browse files
author
Payman IB
committed
Remove unnecessary comments in formatTimeDisplay function for cleaner code
1 parent ba8d606 commit b185d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ function pad(num) {
44

55
function formatTimeDisplay(seconds) {
66
const remainingSeconds = seconds % 60;
7-
const totalMinutes = (seconds - remainingSeconds) / 60; //1
8-
const remainingMinutes = totalMinutes % 60; //1
7+
const totalMinutes = (seconds - remainingSeconds) / 60;
8+
const remainingMinutes = totalMinutes % 60;
99
const totalHours = (totalMinutes - remainingMinutes) / 60;
1010

1111
return `${pad(totalHours)}:${pad(remainingMinutes)}:${pad(remainingSeconds)}`;

0 commit comments

Comments
 (0)