"this" in a javascript function?
<p>I understand that "this" is a reference for the caller object.</p>

<p>I'm used to see "this" in code like:</p>

<pre><code>var Person = function() {
   this.name = "foo";
}
</code></pre>

<p>But then I saw these lines of code:</p>

<p>Example 1:</p>

<pre><code>function helloWorld1() {
   this({ body: "Hello world!" })();
}
</code></pre>

<p>Example 2:</p>

<p>I also seen this code:</p>

<pre><code>function helloWorld2() {
  this
    ({ body: "Hello, " })
    ({ body: "world!" })
    ();
}
</code></pre>

<ul>
<li>What does "this" means here?</li>
<li>What is happening in the above examples?</li>
</ul>
