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 4b43c2e commit 9919844Copy full SHA for 9919844
1 file changed
Sprint-2/3-mandatory-implement/3-to-pounds.js
@@ -21,7 +21,7 @@ function toPounds(penceString) {
21
.substring(paddedPenceNumberString.length - 2)
22
.padEnd(2, "0");
23
24
- return console.log(`£${pounds}.${pence}`);
+ return `£${pounds}.${pence}`; // the function is expected to return the converted value, not output the converted value to the console.
25
}
26
toPounds("399p"); // £3.99
27
toPounds("1095p"); // £10.95
0 commit comments