// return masked string function maskify(cc) { if (cc.length <=4) { return cc; } else { return ("#".repeat((cc.length-4))+cc.slice(-4, cc.length)); } }