There was an error while loading. Please reload this page.
1 parent 87ff7d9 commit 6cdfd03Copy full SHA for 6cdfd03
1 file changed
Sprint-3/3-mandatory-implement/3-to-pounds.js
@@ -4,7 +4,7 @@
4
// You will need to declare a function called toPounds with an appropriately named parameter.
5
6
// You should call this function a number of times to check it works for different inputs
7
-function toPound(penceString) {
+function toPounds(penceString) {
8
const penceStringWithoutTrailingP = penceString.substring(
9
0,
10
penceString.length - 1,
@@ -19,5 +19,5 @@ function toPound(penceString) {
19
.padEnd(2, "0");
20
return `£${pounds}.${pence}`;
21
}
22
-console.log(toPound("399p"));
23
-console.log(toPound("2p"));
+console.log(toPounds("399p"));
+console.log(toPounds("2p"));
0 commit comments