This question already has an answer here:
I'd like to have each math operation in a self contained .js file then have another .js file that will #include the other smaller files and can call the functions from them?
Is that possible?
The math example is just a simple way to try to express what I mean, the real program is a bit more complicated that that and the main purpose of splitting the code up is because It's just easier for me to reason out with small specialized pieces of code.
I do not have any document or dom to work with, just plain .js files with algorithms inside.
You can use webpack with require('otherfile.js');
yes, use require
I call plagiarism!