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 e109be6 commit a0aa43aCopy full SHA for a0aa43a
1 file changed
Sprint-1/3-mandatory-interpret/3-to-pounds.js
@@ -25,3 +25,9 @@ console.log(`£${pounds}.${pence}`);
25
26
// To begin, we can start with
27
// 1. const penceString = "399p": initialises a string variable with the value "399p"
28
+// 2. Removes the trailing "p" from the string.
29
+// 3. Adds leading zeros if needed.
30
+// 4. Extracts the pounds value.
31
+// 5. Extracts the pence value.
32
+// 6. Logs the formatted price (£3.99).
33
+// Final output: "£3.99".
0 commit comments