export default function myEmailAddress(myEmail) {
return myEmail;
}
let myResult = myEmailAddress("email.com");
console.log(myResult)
the export function is used whenever we want to use this function in another module without writing it again, if it is the only module this function is used, no need for exporting it, to understand more about exports and default exports and when to use them check this article:https://learnjsx.com/category/2/posts/es6-moduleExports