You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For the piece of code above, read the code and then answer the following questions
@@ -33,4 +33,5 @@ console.log(result);
33
33
// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
34
34
// No. Not for all possible values of movieLength, some EdgeCases are:
35
35
//1. when movieLength is of negative value, the maths produces negative time and its illogical for a movie duration
36
-
//2. if movieLength is not a number, its produces "NAN" and this breaks mathematically
36
+
//2. if movieLength is not a number, its produces "NAN" and this breaks mathematically
37
+
//3. what if movieLength is less than 10? if movieLength is let say 9 , without proper formatting it will look like this 0:0:9 but with 0 padding it looks better like this 0:00:09
0 commit comments