Interesting. And what would be the structure of that email object.
I think it will be like this:
class Email { constructor(email){ this.email = email; } get user(){ //return text before '@' } get domain(){ //return domain } get tld(){ //return top-level-domain } isValid(){ //validate email string given in constructor } }
For a lexical analyzer or something like that
not meaning to troll or so, but you can have user@ipaddress as a validemail ;)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Interesting. And what would be the structure of that email object.
I think it will be like this:
For a lexical analyzer or something like that
not meaning to troll or so, but you can have user@ipaddress as a validemail ;)