Skip to content

Commit d7abaa6

Browse files
committed
answered interpret 3
1 parent b195e6b commit d7abaa6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sprint-1/3-mandatory-interpret/3-to-pounds.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ console.log(`£${pounds}.${pence}`);
2525

2626
// To begin, we can start with
2727
// 1. const penceString = "399p": initialises a string variable with the value "399p"
28+
// 3-6. removes the p from "399p"
29+
// 8. If the string is shorter than 3 characters, it will add 0s to the front
30+
// 9-12. Extracts the pound part of the string
31+
// 14-6. Extracts the pence part of the string

0 commit comments

Comments
 (0)