I have to make template modules, each of which has 3 functions. For example, there can be module1.js
which will have exports.function1
, exports.function2
and exports.function3
. There will be module2.js
which also has the exact same functions; just the functionality would differ.
I use WebStorm for development and when I type exports.
, it gives me the 3 function names as autocomplete suggestions.
My question is, will these functions overwrite each other? Or is it okay to have same function names in different modules?