javaScript code import

How do I import a script from one JavaScript file into another JavaScript file

For example, it "file1.js" has a function called "doStuff()", I want to do something like this in "file2.js":

"file1.js".doStuff();

How do i do that




Answer this question

javaScript code import