Skip to content

Commit c2075ba

Browse files
authored
Clean up comments in 3-to-pounds.js
Removed commented-out code for padding pence number string.
1 parent 3a5af8c commit c2075ba

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ console.log(`£${pounds}.${pence}`);
2424
// Try and describe the purpose / rationale behind each step
2525
//this function penceString.length-1 removes the last p from string so it values 3 because it contains 4 characters minues 1.
2626
//penceString.substring(0, 3) and it takes the characters from position 0 up to, but not including, position 3.
27-
//const paddedPenceNumberString = penceStringWithoutTrailingP.padStart(3, "0");
2827
//const paddedPenceNumberString = penceStringWithoutTrailingP.padStart(3, "0");This uses padStart() to make sure the string has at least 3 characters.
2928
//const pounds = paddedPenceNumberString.substring(0, paddedPenceNumberString.length - 2);
3029
//This line extracts the pounds part.

0 commit comments

Comments
 (0)