I am trying to create a bunch of variables like this:
function l(){ var a1 = 2, a2 = 4, a3 = 6, a4 = 8, . .
As a matter of fact, I think using a object is a good idea.
var scope = {} for (var i=1;i<=20;i++) { scope['a'+i] = 'stuff'; }
The result will be you have a scope object that contain every newly create variable you want!
scope