title: How to create JS class object in a loop
body: <p>I am have a class  in JS <em>job</em> ,now I want a simple way to create its object in a for loop, the way I trying to do this is:</p>
  
  <pre><code> for(var i=1;i&lt;=jobsCount;i++)
           {
            var eval("job"+i)=new job();
  
           }
  </code></pre>
  
  <p>But this syntax gives me an error as illegal life hand side assignment ,is there a simple way do this,?</p>