This is a follow-up question to In Node.js, how do I "include" functions from my other files?
I would like to include an external js file that contains common
It is worth noting that in ES6, you can now export functions like this:
export function foo(){} export function bar(){} function zemba(){}
Simply write export before the functions you want to export. More information here.
export