Well, a loop might not be as easy except you know about arrays. I don't think so. But please, fix your indentation. And a neat trick

Code:
this = this + 1;
is equivalent to

Code:
this++;