All challenges
Multiple ChoiceIntermediate 30s

IIFE Purpose

Choose the best answer for: Immediately Invoked Function Expression
Options
  1. 1An IIFE only works when the script runs in strict mode
  2. 2IIFE creates a private scope to avoid global pollution
  3. 3An IIFE creates global variables instead of a private inner scope
  4. 4An IIFE is the same as a regular named function call at top level

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle