Skip to content

Commit 8ce4854

Browse files
committed
padend method not really needed here
1 parent 60af85c commit 8ce4854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-1/3-mandatory-interpret/3-to-pounds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ console.log(`£${pounds}.${pence}`);
2828
// line 3: calling substring method to remove the 'p' letter and keep only digits in the string
2929
// line 8: using padstart method to make the minimum length of the string to 3 characters by adding one zero or two to the left.
3030
// line 9: using substring method to take only the integer part
31-
// line 14: using substring method to take only the decimal part and padend method to make the minimum length of pence to 2 characters by adding zero to the right
31+
// line 14: using substring method to take only the decimal part and padend method actualy is not needed here because the decimal part will always be 2 characters long
3232
// line 18: calling console function to print the integer part that represents the pound and the decimal part that represents the pence seprated by point
3333
//

0 commit comments

Comments
 (0)