exposed variable from the global scope in the browser except iife?
After I wrote a bunch of exposed variables without iife,
The I tried to remove them from the global scope by
window.variable = undefined;
After I have added them to a general object and export them.
I created another javascript file just below the first one, and created with content of
const variable = someOtherValue
,
What I want to achieve is to remove variables from the global scope without iife
There is also ES modules as you know
Not every time we can use a serve for development, I want the bridge to be short
Any help?
Don't make them global?
Обсуждают сегодня