Search
Use the padStart method to add padding to the string stored in cardNumberEnding and store it in maskedCardNumber.
padStart
cardNumberEnding
maskedCardNumber
The length of maskedCardNumber should be 16.
Use "*" for padding.
"*"
For example: