I have several independent .js files that I want to run together/at once, is that possible/is there any way to do that efficiently? Each script contains a block of code, not only a single function.
-
Can you use modules?CertainPerformance– CertainPerformance2018-04-25 03:16:49 +00:00Commented Apr 25, 2018 at 3:16
-
@CertainPerformance doesn't that require calling functions inside main.js? I'm sorry I'm new to nodejs, this is all I found stackoverflow.com/questions/27560968/…abcd– abcd2018-04-25 03:24:46 +00:00Commented Apr 25, 2018 at 3:24
-
Yeah, just like that - just have your main call and execute all your independent script filesCertainPerformance– CertainPerformance2018-04-25 03:44:24 +00:00Commented Apr 25, 2018 at 3:44
-
That worked, thank you!abcd– abcd2018-04-25 03:55:42 +00:00Commented Apr 25, 2018 at 3:55
Add a comment
|