We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6992670 commit ed5a315Copy full SHA for ed5a315
Sprint-1/3-mandatory-interpret/3-to-pounds.js
@@ -24,4 +24,9 @@ console.log(`£${pounds}.${pence}`);
24
// Try and describe the purpose / rationale behind each step
25
26
// To begin, we can start with
27
-// 1. const penceString = "399p": initialises a string variable with the value "399p"
+// 1. const penceString = "399p": initialize a string variable with the value "399p"
28
+//2. Removes the trailing "p" from the string: and result will be 399
29
+//3. Ensures the number has at least 3 digits by padding from the left with zeros: like 000
30
+//4. Extracts the pound portion: "3"
31
+//5.Extracts the pound portion: "99"
32
+//6. Extracts the pound portion: in the standard monetary format of pounds and pence: "£3.99"
0 commit comments