Lets say you are building a npm library and you would like to export your functions.Like so:
function a(){
}
And now you want to export them. A way to do that locally would be:
export function a(){
}
But you could do it like this:
function a(){
}
module.exports = a;
Whats the difference? Do they do the same thing?