I am working on a project where I need to redo the same thing with new variable names
var paper1 = new Raphael('img1', 500, 500);
c1 = paper1.rect(0, 0, 50, 20, 5);
var paper2 = new Raphael('img2', 500, 500);
c2 = paper2.rect(0, 0, 50, 20, 5);
I would like to be able to do this with a for loop.
So in the above example I would want paper+i, img+i, and c+i
was trying eval("paper"+i) but didn't work.