The issue is that I'm trying to write a javascript file that can execute several js files, but I cannot make it to work.
Is there a way to call and execute a js file in another js file? For example:
function callJsFile()
{
//call a .js file and execute the code in it at ../js/somejavascript.js"
}
I have tried exporting the result variable that I need from a js file, and run it on the Main Javascript file, but it returns "undefined", because you actually need to run the js file in order for you to get the result on the variable.
module.exports.post = post_db_01;