1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00
programming-challenges/challenges/maskify-card-number/README.md

14 lines
543 B
Markdown
Raw Normal View History

# maskify-card-number
2020-09-13 00:15:21 +02:00
Created by [@Divlo](https://github.com/Divlo) on 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.