Skip to content

Commit 6cdfd03

Browse files
i changed the function name topounds from topound and also changed the console log to reflect the new function name
1 parent 87ff7d9 commit 6cdfd03

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// You will need to declare a function called toPounds with an appropriately named parameter.
55

66
// You should call this function a number of times to check it works for different inputs
7-
function toPound(penceString) {
7+
function toPounds(penceString) {
88
const penceStringWithoutTrailingP = penceString.substring(
99
0,
1010
penceString.length - 1,
@@ -19,5 +19,5 @@ function toPound(penceString) {
1919
.padEnd(2, "0");
2020
return `£${pounds}.${pence}`;
2121
}
22-
console.log(toPound("399p"));
23-
console.log(toPound("2p"));
22+
console.log(toPounds("399p"));
23+
console.log(toPounds("2p"));

0 commit comments

Comments
 (0)