Question: Write JavaScript code to print the email address(es) exported from the following module. You need to pass a text file containing email addresses. Note that
Write JavaScript code to print the email address(es) exported from the following module. You need to pass a text file containing email addresses. Note that module file and the file using the module are two different files. No point assigned if the supplied code was not used as a module.
// module "findemail.js" export function findEmail(text) { return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi); }
show its output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
