From 831b5c672c37f13b16891dbc3f91b58e433a2644 Mon Sep 17 00:00:00 2001 From: RoushanFW196 Date: Tue, 28 Nov 2023 23:40:53 +0530 Subject: [PATCH] credit masking --- lib/textMaskingAndSecurity.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/textMaskingAndSecurity.js b/lib/textMaskingAndSecurity.js index 03fcd0a..ead4791 100644 --- a/lib/textMaskingAndSecurity.js +++ b/lib/textMaskingAndSecurity.js @@ -60,6 +60,17 @@ function maskCreditCard(cardNumber, visibleDigits = 4) { Expected Output: '************3456' Mask all but the digits provided in arguments by user for secure display. Code your solution and make sure to export it. */ + let res=''; + for(let i=0; i