Skip to content

Commit 5aa1257

Browse files
committed
removed unusable line (substring() method does the job)
1 parent 9919844 commit 5aa1257

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sprint-2/3-mandatory-implement/3-to-pounds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function toPounds(penceString) {
1919

2020
const pence = paddedPenceNumberString
2121
.substring(paddedPenceNumberString.length - 2)
22-
.padEnd(2, "0");
22+
// I removed this line because the value of the pence variable is always padded to two digits.
2323

2424
return ${pounds}.${pence}`; // the function is expected to return the converted value, not output the converted value to the console.
2525
}

0 commit comments

Comments
 (0)