There was an error while loading. Please reload this page.
1 parent 85a99f4 commit 4b1680eCopy full SHA for 4b1680e
1 file changed
Sprint-2/3-mandatory-interpret/3-to-pounds.js
@@ -17,7 +17,7 @@ const pounds = paddedPenceNumberString.substring(
17
const pence = paddedPenceNumberString
18
.substring(paddedPenceNumberString.length - 2)
19
.padEnd(2, "0");
20
- // At last we get the last two characters as the pence.
+ // At last we get the last two characters as the pence and first one or index 0 is removed .
21
22
console.log(`£${pounds}.${pence}`);
23
//We can display the price of pound and pence like £3.99.
0 commit comments