Skip to content
Multiple .js files in one project
Profile icon

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 [earned 5 cycles]
View Answer
Profile icon

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