I don’t understand how to do the rest of the steps after step 4. This should really have another workshop for stuff like this before a lab like this. It’s hard to know what to do if we don’t see it properly before hand.
Your code so far
function maskEmail(email) {let arobasePosition = email.indexOf("@");
let wordToSlice =email.slice(1, arobasePosition);
let wordToSliceCharCount = wordToSlice.lenght - 1;
let replacedChar= email.replace(wordToSlice, "*".repeat(wordToSliceCharCount));};
let email= "apple.pie@email.com";
console.log(maskEmail(email));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0
I think this lab is way too hard. I’m gonna try tomorrow. but still don’t get how to get the results I want that’s the problem. if there was more specific help in the lab it would help. I know we did see everything but I have no idea how to suggest freecodecamp had another workshop for smth like this.