Skip to content

Commit 910470b

Browse files
committed
Remove commented-out code
1 parent 57ee644 commit 910470b

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

‎Sprint-3/4-mandatory-interpret/time-format.js‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
// let padCalls = 0;
2-
// let padCallCount = 0;
3-
// let firstNum;
4-
// let lastNum;
51
let lastReturn;
62

73
function pad(num) {
8-
// padCalls++;
9-
// padCallCount++;
10-
// if (padCallCount === 1){
11-
// firstNum = num;
12-
// }
13-
// lastNum = num;
144
let numString = num.toString();
155
while (numString.length < 2) {
166
numString = "0" + numString;
177
}
18-
// if (padCallCount === 1){
19-
// firstReturn = numString;
20-
// }
218
lastReturn = numString;
229
return numString;
2310
}
@@ -30,11 +17,7 @@ function formatTimeDisplay(seconds) {
3017

3118
return `${pad(totalHours)}:${pad(remainingMinutes)}:${pad(remainingSeconds)}`;
3219
}
33-
// for (const s of [8784, 77, 77777]){
34-
// padCalls = 0;
35-
// const result = formatTimeDisplay(s);
36-
// console.log(`formatTimeDisplay(${s})==> ${result}| pad called ${padCalls} times `);
37-
// }
20+
3821
formatTimeDisplay(61);
3922
console.log("The return value of pad when it is called for the last time is:", lastReturn);
4023

0 commit comments

Comments
 (0)