Skip to content

Commit fb5b6b5

Browse files
committed
Implement function to track first pad return value
1 parent b148d65 commit fb5b6b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function pad(num) {
1313
numString = "0" + numString;
1414
}
1515
if (padCallCount === 1){
16-
firstReturn = numstring;
16+
firstReturn = numString;
1717
}
1818
return numString;
1919
}
@@ -32,7 +32,7 @@ function formatTimeDisplay(seconds) {
3232
// console.log(`formatTimeDisplay(${s})==> ${result}| pad called ${padCalls} times `);
3333
// }
3434
formatTimeDisplay(61);
35-
console.log("The value assigned to num on the first call to pad is:", firstNum);
35+
console.log("The return value of pad when called for first time is:", firstReturn);
3636

3737
// You will need to play computer with this example - use the Python Visualiser https://pythontutor.com/visualize.html#mode=edit
3838
// to help you answer these questions

0 commit comments

Comments
 (0)