In C, you can do something like this:
#define NESTEDFOR(i,j,n) for(i=0; i<n; i++) for(j=0; j<n; j++)
So you can use NESTEDFOR(x,y,200) to save time, because it will be replaced with for(x=0; x<200; x++) for(y=0; y<200; y++)
I suppose there is no way to do this in JavaScript since it's an Interpreted language, but I'm not sure.
Is there any way to do it in JavaScript?