Skip to content

Commit ebb51e5

Browse files
committed
indentation fix
1 parent faeb0ff commit ebb51e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
function toPounds(penceString) {
10-
const penceStringWithoutTrailingP = penceString.substring(
10+
const penceStringWithoutTrailingP = penceString.substring(
1111
0,
1212
penceString.length - 1 // to remove the trailing 'p'
1313
);
@@ -22,7 +22,7 @@ const pence = paddedPenceNumberString
2222
.substring(paddedPenceNumberString.length - 2) // the last two characters
2323
.padEnd(2, "0"); // in case there is only one character of pence
2424

25-
return ${pounds}.${pence}`;
25+
return ${pounds}.${pence}`;
2626
}
2727

2828
console.log(toPounds("399p")); // should log "£3.99"

0 commit comments

Comments
 (0)