Does a function declaration create an object in Javascript?
<p>Function constructors are able to create objects in javascript but 
I have a more basic question.</p>

<p>Declaring a plain function in Javascript using a "function declaration" such as </p>

<pre><code>function Foo() 
{
  this.prop1 = 20;
  //some code
}
</code></pre>

<p>Does this create an object internally in javascript heap with pointer as abc and prop1 as 20? </p>

<p>Or is it that the objects are created only when the function constructor is called
like</p>

<pre><code>var a = new Foo() //This definately creates a new object
</code></pre>
