1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02:00
programming-challenges/challenges/maskify-card-number
2020-09-12 21:29:46 +00:00
..
solutions docs: Update READMEs + fix scripts/create-solution.ts 2020-09-12 21:29:46 +00:00
input-output.json Add "maskify-card-number" challenge 2020-07-05 20:30:27 +02:00
README.md Add "maskify-card-number" challenge 2020-07-05 20:30:27 +02:00

maskify-card-number

Created by @Divlo at 5 July 2020.

Instructions :

Usually when you buy something, you're asked whether your credit card number, phone number or answer to your most secret question is still correct. However, since someone could look over your shoulder, you don't want that shown on your screen. Instead, we mask it.

Your task is to write a function, which changes all but the last four characters into '#'.

Examples :

See the input-output.json file for examples of input/output.