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