JS -Exporte
// First Export from other file
export default exampleFunction;
// for multiple exports use:
module.exports = { exampleFunction1, exampleFunction2 };
// Then we import in the file where we want to use our functions
import exampleFunction from "./otherFile.js";
// for multiple imports, we desctructure
import { exampleFunction1, exampleFunction2 } from "./otherFile.js"
// Check MDN for more info on JS exports.
// NOTE: if running on node, add "type": "module" to your package.json file
//
Jarett Sisk