Skip to content

Commit 7c63b0b

Browse files
definition of padEnd method and explanation of movieLength % 60 operator
1 parent 3ae94cf commit 7c63b0b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Sprint-2/3-mandatory-interpret/3-to-pounds.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const pence = paddedPenceNumberString
1818
.substring(paddedPenceNumberString.length - 2)
1919
.padEnd(2, "0");
2020
// 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+
2123

2224
console.log(`£${pounds}.${pence}`);
2325
//We can display the price of pound and pence like £3.99.

0 commit comments

Comments
 (0)