Skip to content

Commit 41ef602

Browse files
committed
Add solution comments for variable declarations in 2-time-format.js
1 parent 722ed1c commit 41ef602

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,14 @@ console.log(result);
2323
// e) What do you think the variable result represents? Can you think of a better name for this variable?
2424

2525
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
26+
27+
28+
29+
//Solution
30+
// a) There are 6 declared variables in this program, all declared with 'const'
31+
// - const movieLength
32+
// - const remainingSeconds
33+
// - const totalMinutes
34+
// - const remainingMinutes
35+
// - const totalHours
36+
// - const result

0 commit comments

Comments
 (0)