Skip to content

Commit b148d65

Browse files
committed
Commented-out code for firstNum assignment in pad function
1 parent 2f14c92 commit b148d65

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ let firstNum;
55
function pad(num) {
66
// padCalls++;
77
padCallCount++;
8-
if (padCallCount === 1){
9-
firstNum = num;
10-
}
8+
// if (padCallCount === 1){
9+
// firstNum = num;
10+
// }
1111
let numString = num.toString();
1212
while (numString.length < 2) {
1313
numString = "0" + numString;
1414
}
15+
if (padCallCount === 1){
16+
firstReturn = numstring;
17+
}
1518
return numString;
1619
}
1720

0 commit comments

Comments
 (0)