Does require() in JavaScript/Node.js executes the same file every time it is imported into other modules?
If yes, how can I have one array in one file and append/update values in it from another JS file? For example, I have an Array in one file and I am updating the Array from multiple files and I want all of them to interact with only the updated array. How can I achieve this?