Click in order · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects
Building an IIFE
Build a correct IIFE (Immediately Invoked Function Expression) by clicking elements in the right order:
Items to click
- function()
- ();
- )
- (
- { /* code */ }
Show the answer
Correct order:
- (
- function()
- { /* code */ }
- )
- ();