Normally it’s doing exactly what it asks, but when I run it it says;
“// running tests
5. maskEmail(“apple.pie@example.com”) should return “a*******e@example.com”.
6. maskEmail(“freecodecamp@ example .com”) should return “f**********p@example.com”.
7. maskEmail(“info@test.dev”) should return “i**o@test.dev”.
8. maskEmail(“user@domain.org”) should return “u**r@domain.org”.
9. Your maskEmail should produce the correct result.
10. You should log the output of calling maskEmail with email as argument.
// tests completed"
I tried it outside of function, and log the fullName value, and it’s doing for example “a*******e@example.com”,
I moved the whole code inside of the function, and it’s not working