There was an error while loading. Please reload this page.
1 parent 3ae94cf commit 7c63b0bCopy full SHA for 7c63b0b
1 file changed
Sprint-2/3-mandatory-interpret/3-to-pounds.js
@@ -18,6 +18,8 @@ const pence = paddedPenceNumberString
18
.substring(paddedPenceNumberString.length - 2)
19
.padEnd(2, "0");
20
// At last we get the last two characters as the pence and first one or index 0 is removed .
21
+ // In this, padEnd add extra until its reach to target. In this its add 2 character .
22
+
23
24
console.log(`£${pounds}.${pence}`);
25
//We can display the price of pound and pence like £3.99.
0 commit comments