Skip to content

Commit 59faf6f

Browse files
committed
Correct answers to question. Fix formatting
1 parent d839a56 commit 59faf6f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

‎Sprint-2/3-mandatory-interpret/3-to-pounds.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)