Mask a Card Number
Easy · Strings
Write a function maskCard that hides a card number: replace every character with "#" except the last 4.
Strings with 4 or fewer characters are returned unchanged.
Next: Move Zeros to the End
Easy · Strings
Write a function maskCard that hides a card number: replace every character with "#" except the last 4.
Strings with 4 or fewer characters are returned unchanged.
Next: Move Zeros to the End