Skip to content

Commit a5a7c63

Browse files
committed
Add explanation for pad function calls in formatTimeDisplay
1 parent 4c05247 commit a5a7c63

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ console.log
3030

3131
// a) When formatTimeDisplay is called how many times will pad be called?
3232
// =============> write your answer here
33+
// The 'pad' function is called "three times" within the 'formatTimeDisplay' function
34+
// The count will always be three because the 'return' statement contains three 'pad()' calls
3335

3436
// Call formatTimeDisplay with an input of 61, now answer the following:
3537

0 commit comments

Comments
 (0)