Skip to content

Commit d839a56

Browse files
committed
Correct answers to question
1 parent 3efcedd commit d839a56

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ console.log(result);
1212
// For the piece of code above, read the code and then answer the following questions
1313

1414
// a) How many variable declarations are there in this program?
15-
//5
15+
//6
1616

1717
// b) How many function calls are there?
1818
//1
@@ -29,7 +29,8 @@ console.log(result);
2929
// time into minutes
3030

3131
// e) What do you think the variable result represents? Can you think of a better name for this variable?
32-
//The number of whole minutes in the movie. numFullMinutes
32+
//The movie length formatted in hours:minutes:seconds. formattedMovieLength
3333

3434
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
35-
//Yes the math is fine and works with all numbers.
35+
//It works for positive numbers. negative numbers but will give a negative time which is
36+
//not real. It works with decimal numbers fine. text will give NaN

0 commit comments

Comments
 (0)