1 min readJun 26, 2018
var x = function(){…}(); is not a named function expression. It’s still using an anonymous function expression. In this case, either named or unnamed, you can omit outer parentheses.
I have explained this in the section with title: “When you can omit parentheses”