Multiple .js files in one project
GopeshMedayil (1)

How to use multiple js files in a single project? It is executing only index.js file every time. Any option to run other than index.js?

You are viewing a single comment. View All
Answered by JustARatherRidi (191) [earned 5 cycles]
View Answer
AlexMogoryan (0)

I use in index.js file

// to run code in file fileName.js
require('./fileName');

That helps me to test code just clicking run and make new files.js without making new repls ;D