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 7596b5a commit c9214f3Copy full SHA for c9214f3
1 file changed
Sprint-2/3-mandatory-implement/3-to-pounds.js
@@ -5,9 +5,9 @@
5
6
// You should call this function a number of times to check it works for different inputs
7
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);
+ const penceStringWithoutTrailingP = penceString.substring(0, penceString.length -1);
+ const pounds = paddedPenceNumberString.slice(0, -2);
+ const pence = paddedPenceNumberString.slice(-2);
11
return `£${pounds}.${pence}`;
12
}
13
0 commit comments