Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

606 B

title
title
Understand the Immediately Invoked Function Expression (IIFE)

Understand the Immediately Invoked Function Expression (IIFE)


Problem Explanation

The first test case asks you to make the function anonymous. To do this simply remove the name of the function as seen in the example. The function must then be wrapped in curly brackets with another set of curly brackets at the end to immediatly call the function.


Solutions

Solution 1 (Click to Show/Hide)
(function() {
  console.log("A cozy nest is ready");
})();