title: Init function in javascript and how it works
body: <p>I often see the following code:</p>
  
  <pre><code>(function () {
    // init part
  })();
  </code></pre>
  
  <p>but I never could get my head around how it works. I find the last brackets especially confusing.
  Could someone explain how it works in terms of Execution Contexts (EC) and Variable Objects (VO)?</p>