Build an Email Masker - Build an Email Masker

Tell us what’s happening:

I’ve just got lost to find the solution to do the exercise.

Some help will be useful!!

Your code so far

function maskEmail(email){
  const dot = indexOf('@')
  
}

maskEmail('someone@exaple.com')

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0

Challenge Information:

Build an Email Masker - Build an Email Masker

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-email-masker/66b205e6eacba4c4e54ea434.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @edgshift,

For starters, I suggest implementing the user stories exactly as asked:

  1. Outside the function, declare a variable named email to store the email address you want to mask.
  2. Call the maskEmail function with the email variable and output the result to the console.

Happy coding