title: Creating javascript objects
body: <p><strong>Set UP:</strong>
  Hi. I am trying to learn about creating/instantiating objects. I was thinking I should be able to create multiple objects that may have different amounts of similar works (like gather news articles) and would "report completion" regardless of the order created.  So far I am not clear on this, so here is a basic example followed by the stated question:</p>
  
  <pre><code>function test(count){
      this.count = count;
      for(var i = 0; i&lt; count; i++){}
      console.log(i);
  }
  
  new test(1000);
  new test(10);
  </code></pre>
  
  <p><strong>Actual Question:</strong></p>
  
  <p>Based on the code above, I would expect the second instance to print first, but it does not.  What would be the correct way to set this up so that which ever object finishes its work would print first?</p>
  
  <p><em><strong></em>* Modify my question <em>*</em></strong>
  Sorry...what I am really intending to ask is how to set objects to have more of an asynchronous behavior.  I am new to Stack, so please let me know if I should close/move this question.</p>