General Question

How do I simply repeat a line of code 4x in Javascript?
I know it is something like a while true loop – the correct solution for the game is:
forward();
forward();
forward();
forward();
I am assuming that’s a command. What is an easy way to do this? Thanks!
Observing members:
0
Composing members:
0


2 Answers
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.
Have a question?
Ask Fluther!