for loop does not execute twice
<pre><code> createModelView: function (obj,vitalslength,headerValue) {                     
    for(i = 0, vitalsLen = vitalslength; i &lt; vitalsLen; i++) {    
      // Do some logic    
      }    
   } 
</code></pre>

<p>Two Questions</p>

<ol>
<li><p>Where should i place my return statement for the function. If i place inside the for loop will it work. </p></li>
<li><p>When i call this function <code>Obj.createModelView(arguments);</code>  Why does it not execute twice or n number of times depending upon the vitalsLength. <code>It only executes once.</code></p></li>
</ol>
