정의됨과 동시에 즉시 실행되는 함수. IIFE creates a function but not even having to save it somewhere. 단 한번만 쓰고 없어지는 function이 필요할 때가 있는데, 예를 들면 async/await (function () { console.log('한번만 쓸 function'); }); 또는 (() => console.log('한번만 쓸 function'))(); statement 전체를 ( )로 감싸서 expression으로 바꾼다. 왜 IIFE가 필요한가? One scope does not have access to variables from an inner scope. All data defined inside a scope is provate ..