Skip to content

Commit 510f7b5

Browse files
committed
Fixed comments in formatTimeDisplay function to include quotes for clarity
1 parent 777d913 commit 510f7b5

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
@@ -25,11 +25,11 @@ function formatTimeDisplay(seconds) {
2525
// =============> 1 because the first operation is 61 % 60 which gives us 1
2626

2727
// c) What is the return value of pad is called for the first time?
28-
// =============> 00 because the first operation is totalHours which is 0 and it is padded to 2 digits with a 0 in front of it.
28+
// =============> "00" because the first operation is totalHours which is 0 and it is padded to 2 digits with a 0 in front of it.
2929

3030
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
3131
// =============> 1 because the last operation is 1 % 60 which gives us 1
3232

3333
// e) What is the return value assigned to num when pad is called for the last time in this program? Explain your answer
34-
// =============> 01 because the last operation on the return line is remainingSeconds which is 1 and it is padded to 2 digits with a 0 in front of it.
34+
// =============> "01" because the last operation on the return line is remainingSeconds which is 1 and it is padded to 2 digits with a 0 in front of it.
3535

0 commit comments

Comments
 (0)