How can I define a function's prototype in JavaScript?
<p>How can I define a function's prototype in JavaScript? I want to do this like I would do it in C where you would do something like:</p>

<pre><code>void myfunction(void);

void myfunction(void){
}
</code></pre>

<p>So is there any way to do this in JavaScript? I'm asking this because of the function declaration order that is required in JavaScript.</p>

<p><hr /></p>

<h3>Edit:</h3>

<p>I have an object:</p>

<pre><code>function something(){
 var anArrayOfSomethingObjects;
 aPrivateFunction(){ 
    // does some stuff
    anArrayOfSomethingObjects[3].aPublicFunction();
 }

 return {
  functionA: function() { },
  aPublicFunction: function() { },
  functionC: function() { }
 }
}
</code></pre>

<p><code>privateFunction</code> needs to access <code>publicFunction</code> which is declared afterwards. </p>

<p>How can I do this?</p>
