We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9919844 commit 5aa1257Copy full SHA for 5aa1257
1 file changed
Sprint-2/3-mandatory-implement/3-to-pounds.js
@@ -19,7 +19,7 @@ function toPounds(penceString) {
19
20
const pence = paddedPenceNumberString
21
.substring(paddedPenceNumberString.length - 2)
22
- .padEnd(2, "0");
+ // I removed this line because the value of the pence variable is always padded to two digits.
23
24
return `£${pounds}.${pence}`; // the function is expected to return the converted value, not output the converted value to the console.
25
}
0 commit comments