The first type: (function () { // open IIFE // inside IIFE }()); // close IIFE The second type: !function () { // open IIFE // inside IIFE }(); // close IIFE The third type: void function () { // open IIFE // inside IIFE }(); // close IIFE