My code is outputting correctly. There are no extra characters anywhere. I’ve used all the suggested methods: repeat(), replace(), slice() but the results are still not accepted by the lab.
the console.log is not the solution, the console.log is to show you that the function returns undefined, and now that you know that you can work on fixing it
Let me know if I’m going in the right direction but it seems “email” is not declared first right? So trying to call the indexOf() function shoot back in error due to that? Sorry this is stumping me so bad.
Okay I think I’m starting to get it. Everything seems to be accepting except step number 2. I’ve tried logging it with (email) as the argument but it won’t take.