Skip to content

Commit f3aa942

Browse files
committed
Returned correct value in place of console.log()
1 parent edf9927 commit f3aa942

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function toPounds(str) {
1313

1414
let pence = paddedPenceNumberString.substring(paddedPenceNumberString.length - 2).padEnd(2, "0");
1515

16-
console.log(`£${pounds}.${pence}`);
16+
return `£${pounds}.${pence}`;
1717
}
1818

19-
toPounds("5045p")
19+
console.log(toPounds("5045p"))

0 commit comments

Comments
 (0)