Answers for "retrieve domain from email address node js"

0

retrieve domain from email address node js

var email = "[email protected]";
var name   = email.substring(0, email.lastIndexOf("@"));
var domain = email.substring(email.lastIndexOf("@") +1);

console.log( name );   // john.doe
console.log( domain ); // email.com
Posted by: Guest on August-27-2020

Code answers related to "retrieve domain from email address node js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language