We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4c8d85 commit 2776d16Copy full SHA for 2776d16
1 file changed
Sprint-2/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 formaPenceToPounds(penceString){
+function formatPenceToPounds(penceString){
8
const penceStringWithoutTrailingP = penceString.substring(0, penceString.length -1);
9
const pounds = paddedPenceNumberString.slice(0, -2);
10
const pence = paddedPenceNumberString.slice(-2);
@@ -13,4 +13,4 @@ function formaPenceToPounds(penceString){
13
14
console.log(formatPenceToPounds("9p"));
15
console.log(formatPenceToPounds("39p"));
16
-console.log(formatPenceToPounds("399"));
+console.log(formatPenceToPounds("399"));
0 commit comments