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