Answer the question
In order to leave comments, you need to log in
How to organize multiple related modules?
Hey! Suppose there are 3 related files.
index.js second.jslet modules = require('./second.js');
let modules = require('./third.js');
function doSmth() {
//do something
}
let modules = require('./second.js');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question