File tree Expand file tree Collapse file tree
Sprint-2/3-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments