File tree Expand file tree Collapse file tree
Sprint-2/4-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ function formatTimeDisplay(seconds) {
1111 return `${ pad ( totalHours ) } :${ pad ( remainingMinutes ) } :${ pad ( remainingSeconds ) } ` ;
1212}
1313
14+ console . log ( formatTimeDisplay ( 61 ) ) ;
15+
1416// You will need to play computer with this example - use the Python Visualiser https://pythontutor.com/visualize.html#mode=edit
1517// to help you answer these questions
1618
@@ -24,6 +26,7 @@ function formatTimeDisplay(seconds) {
2426
2527// b) What is the value assigned to num when pad is called for the first time?
2628// =============> write your answer here
29+ // The value assigned to num for the first time that it is called is 0 (totalHours = 0)
2730
2831// c) What is the return value of pad is called for the first time?
2932// =============> write your answer here
You can’t perform that action at this time.
0 commit comments