Skip to content

Commit 2776d16

Browse files
authored
Fix typo in function name from forma to format
1 parent f4c8d85 commit 2776d16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 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 formaPenceToPounds(penceString){
7+
function formatPenceToPounds(penceString){
88
const penceStringWithoutTrailingP = penceString.substring(0, penceString.length -1);
99
const pounds = paddedPenceNumberString.slice(0, -2);
1010
const pence = paddedPenceNumberString.slice(-2);
@@ -13,4 +13,4 @@ function formaPenceToPounds(penceString){
1313

1414
console.log(formatPenceToPounds("9p"));
1515
console.log(formatPenceToPounds("39p"));
16-
console.log(formatPenceToPounds("399"));
16+
console.log(formatPenceToPounds("399"));

0 commit comments

Comments
 (0)