Skip to content

Commit 9b67e32

Browse files
change comment to explain
1 parent 52beef7 commit 9b67e32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-2/3-mandatory-interpret/3-to-pounds.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const penceStringWithoutTrailingP = penceString.substring(
66
);
77
// remove the p from the "399p" and make "399"
88
const paddedPenceNumberString = penceStringWithoutTrailingP.padStart(3, "0");
9-
//padStart() add characters to the starting of the string and provide 3 long characters.
9+
// padStart(3, "0") adds "0" at the start until the string is 3 characters long
1010
//Because we have to convert pound and pence.
1111
const pounds = paddedPenceNumberString.substring(
1212
0,

0 commit comments

Comments
 (0)