Skip to content

Commit c3b0ad5

Browse files
author
russom
committed
Refactor code by removing padEnd method.
1 parent 849b970 commit c3b0ad5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ const pounds = paddedPenceNumberString.substring(
1212
);
1313

1414
const pence = paddedPenceNumberString
15-
.substring(paddedPenceNumberString.length - 2)
16-
.padEnd(2, "0");
15+
.substring(paddedPenceNumberString.length - 2);
1716

1817
console.log(`£${pounds}.${pence}`);
1918

0 commit comments

Comments
 (0)