Tell us what’s happening:
it says maskEmail(“apple.pie@example.com”) should return “a****.***@example.com”. I need help doing that . i don’t know where to start
Your code so far
const maskEmail = (email) => {
}
let email = "apple.pie@example.com"
console.log(maskEmail(email))
maskEmail("apple.pie@example.com")
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Challenge Information:
Build an Email Masker - Build an Email Masker