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 e6ec04b commit 79cc401Copy full SHA for 79cc401
Sprint-1/3-mandatory-interpret/3-to-pounds.js
@@ -1,4 +1,4 @@
1
-const penceString = "399p";
+const penceString = "5p";
2
3
const penceStringWithoutTrailingP = penceString.substring(
4
0,
@@ -13,7 +13,6 @@ const pounds = paddedPenceNumberString.substring(
13
14
const pence = paddedPenceNumberString
15
.substring(paddedPenceNumberString.length - 2)
16
- .padEnd(2, "0");
17
18
console.log(`£${pounds}.${pence}`);
19
0 commit comments