79838373

Date: 2025-12-04 21:37:51
Score: 1
Natty:
Report link
const getUserNameFromEmail = (email) => // Arrow function hence the arrow on "=>""
{
    return email.slice(0, email.indexOf('@')); // just gets user and truncates rest of email from @ forward  
}
console.log(getUserNameFromEmail('[email protected]'));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Carocade