(function () {Note that the function has no name and is not stored in a variable. The two parentheses () at the end of the function expression cause it to be immediately executed or invoked. This pattern is known as an
console.log("Chirp, chirp!");
})(); // this is an anonymous function expression that executes right away
// Outputs "Chirp, chirp!" immediately
immediately invoked function expression
or IIFE
.
makeNest
and remove its call so instead it's an anonymous immediately invoked function expression
(IIFE
).