2 ms·
Here is some information about this pattern, it's called Immediately Invoked Function Expression. It's a way to create a function scope so that all variables ar
by lioeters 3y ago
Here is some information about this pattern, it's called Immediately Invoked Function Expression. It's a way to create a function scope so that all variables are local, except for any that you want to "export" as a global.
https://developer.mozilla.org/en-US/docs/Glossary/IIFE https://developer.mozilla.org/en-US/docs/Glossary/IIFE