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 @@ -32,5 +32,5 @@ console.log(result);
3232//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- //It works for positive numbers. negative numbers but will give a negative time which is
35+ //It works for positive numbers. negative numbers but will give a negative time which is
3636//not real. It works with decimal numbers fine. text will give NaN
Original file line number Diff line number Diff line change @@ -50,4 +50,7 @@ console.log(`£${pounds}.${pence}`);
5050// .padEnd(2, "0");
5151// Takes the substring starting at the total length-2, to the end. Essentially taking the
5252// last 2 digits
53- // Then adds 0 to the beginning so it is at least 2 characters long
53+ // Then adds 0 to the end so it is at least 2 characters long
54+
55+ //6. console.log(`£${pounds}.${pence}`); prints the pound and pence variable
56+ // in the format £pounds.pence
You can’t perform that action at this time.
0 commit comments