In this post, I will discuss four of the most important JavaScript concepts. IIFE IIFE, aka, Immediately Invoked Function Expression, are JavaScript functions defined as expressions that are immediately invoked and executed as soon as they are defined. Scope Scope determines which variables you have (or do not have) access to in different contexts. Closures are helpful to employ when you would like to pass variables, arrays, or methods from an outer function to an inner function.

•3m read time•From javascript.plainenglish.io
Post cover image
Table of contents
1. IIFE2. Scope3. ClosuresRuby Blocks, Procs, and Lambdas4. Hoisting
14 Comments

Sort: