Files

23 lines
606 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Understand the Immediately Invoked Function Expression (IIFE)
---
# Understand the Immediately Invoked Function Expression (IIFE)
2018-10-12 15:37:13 -04:00
---
## Problem Explanation
2018-10-12 15:37:13 -04:00
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
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
```javascript
2018-10-12 15:37:13 -04:00
(function() {
console.log("A cozy nest is ready");
})();
```
</details>