JavaScript executes functions immediately in three different ways
- 2020-03-30 03:54:39
- OfStack
The first:
(function () { // open IIFE
// inside IIFE
}()); // close IIFE
The second:
!function () { // open IIFE
// inside IIFE
}(); // close IIFE
The third:
void function () { // open IIFE
// inside IIFE
}(); // close IIFE