Question · JavaScript and TypeScript course · Module 9: Design Patterns and Architecture
Purpose of the IIFE Module Pattern
What is the main purpose of the Module pattern with IIFE (Immediately Invoked Function Expression)?
Answer options
- Enabling asynchronous module loading
- Automatic caching of function results
- Encapsulation - hiding private variables and exporting a public API
- Speeding up code execution through immediate invocation
You can check the correct answer by solving this task in the CodeWorlds game.