Skip to content

Commit 9919844

Browse files
committed
fixed the returned value of the function
1 parent 4b43c2e commit 9919844

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
@@ -21,7 +21,7 @@ function toPounds(penceString) {
2121
.substring(paddedPenceNumberString.length - 2)
2222
.padEnd(2, "0");
2323

24-
return console.log(${pounds}.${pence}`);
24+
return ${pounds}.${pence}`; // the function is expected to return the converted value, not output the converted value to the console.
2525
}
2626
toPounds("399p"); // £3.99
2727
toPounds("1095p"); // £10.95

0 commit comments

Comments
 (0)