Skip to content

Commit f7edaf1

Browse files
committed
Fix typo in explanation comment for pad function return value
1 parent 7d4c0fb commit f7edaf1

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
@@ -37,5 +37,5 @@ function formatTimeDisplay(seconds) {
3737

3838
// e) What is the return value of pad when it is called for the last time in this program? Explain your answer
3939
// =============> Answer "01".
40-
// Explaination: The return value of pad when it is called for the last time in this program is '01'. This is because the value of num is 1 (the remaining seconds after calculating 61 % 60).
40+
// Explanation: The return value of pad when it is called for the last time in this program is '01'. This is because the value of num is 1 (the remaining seconds after calculating 61 % 60).
4141
// Since the length of the string representation of 1 is less than 2, the pad function adds a "0" to the front, resulting in "01".

0 commit comments

Comments
 (0)