I know about modules in JavaScript, but it's a little difficult for me to understand.
When a JavaScript file is imported
require or import
Are scripts that have not been exported also executed? If yes, why can't we use variables and functions that we have not exported?
Thank you for answering.