I have the following Javascript file, one.js:
function doSomething() {
console.log("doing stuff");
}
I have another Javascript file, two.js, in which I want to call doSomething()
:
doSomething();
How can I achieve this? Note this code is for a browser extension so I cannot use html.