0

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.

4
  • Can you use modules? Commented 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/… Commented Apr 25, 2018 at 3:24
  • Yeah, just like that - just have your main call and execute all your independent script files Commented Apr 25, 2018 at 3:44
  • That worked, thank you! Commented Apr 25, 2018 at 3:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.