Build an Email Masker

Hi. Could someone please help with explaining why my solution is not viable.

Hi @GuguP2,

It’s preferable if you don’t post screenshots, as it’s much easier to help if you include your code in a readable format and include a link to the challenge which you’re working on.

For future reference, you can do this by clicking the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

1 Like

However, it’s clear that your code is not working as expected because you’re attempting to hardcode the function output. Also, your function is not returning anything, only logging an array to the console.

You should write a function which can take any email as input and successfully mask the correct portion of it.

1 Like

thank you, I will note for next time.

oh okay I see. thank you.