I have a bunch of JavaScript functions, which I would like to have in separate JS files and be able to import them and use the functions in the main JS file like so
TestFunction.js:
function test(name) {
console.log(name);
}
Main.js:
CODETOIMPORTHERE TestFunction.js
test('test!');