FixTurtle("P1"); spiro = [1,2,3,4,5]; spiro.forEach(function(L){ MoveForward(L); TurnRight(90) });