Build an Email Masker - Build an Email Masker

Hello all. Was wondering how I did in this lesson? All tests are passing but was basically wondering if there’s a better way or more concise way to write my code?

if you want feedback, please post your code, not a screenshot

apologies. im new here and still trying to figure this forum out