Help with Build an Email Masker

It was giving me an error:
2. The maskEmail function should take a string, email as an argument.

I didn’t know what it wanted. It also seemed redundant, because the code was giving the solution.
The problem was that they are asking for a function named maskEmail, and I was using the arrow system:
const maskEmail= ()=>{}
But it only accepts function maskEmail…

I think that has to be asked more clearly. A couple of hours wasted with that.
Also, using email for the function parameter and the variable doesn’t seem that good.

thank you for your report, the project will be updated to avoid this