In JavaScript, what is the advantage of !function(){}() over (function () {})()? [duplicate]

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • bootstrap

    The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. [Moved to:] (by twitter)

    (function () { /* magic happens */ })() Lately, I've started seeing more instances of the following pattern (e.g., in Bootstrap):

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts