title: Javascript Function to Obscure Email Using Asterisks?
body: <p>I'm working on a password reset page where a user types in their username. I'd like to let them know what email it was sent to (sometimes we forget what email we used), without revealing too much information.</p>
  
  <p>So rather than showing: <code>joe_awesome@example.com</code> I'd like to do the following: <code>jo*********@example.com</code> in javascript.</p>
  
  <p>How would I do this efficiently? Basically I'd only like to show the first two letters and the domain only.</p>
  
  <p>P.S. I'm new to javascript. Thanks!</p>