I've been playing Code Combat in order to learn about programming in JavaScript. I think it's been very helpful (similar to a typing game, in teaching a real world skill).
Are questions related to challenges within these games better suited for gaming.stackexchange.com or stackoverflow.com?
The games discussed on gaming.stackexchange.com are not as relevant to helping people get around coding challenges.
Example question:
In Code Combat I have an object (a character named Tharin). I control him by calling
this.moveUp(); this.moveDown(); this.moveLeft(); this.moveRight();
when I'm writing code out to move him, I have to repeat those methods.
this.moveDown(); this.moveDown(); //etc.
Is there any way I can write a line of code that would repeat the action "n" times?