Skip to content

Commit ad83dc0

Browse files
committed
Fix toPounds function to return string template
1 parent 92cdff7 commit ad83dc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-3/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-
console.log(`£${pounds}.${pence}`);
24+
return(`£${pounds}.${pence}`);
2525
}
2626

2727
toPounds("10p");

0 commit comments

Comments
 (0)