Mulai sekarangMulai gratis

Understanding partial masking implementation

You need to implement a function to mask credit card numbers in your application logs. The function should show the last 4 digits for identification while hiding the rest. Credit cards can be in different formats: "1234567890123456" or "1234-5678-9012-3456".

Which implementation correctly handles both formats?

Latihan ini merupakan bagian dari kursus

Using Data Stores in AWS

Lihat Kursus

Latihan interaktif langsung

Ubah teori menjadi aksi dengan salah satu latihan interaktif kami

Mulai latihan