We extend our draw function to include:
1 var ball;
2 var moveCounter = 0;
3 function draw(){
4
5 (2, 2);
6 moveCounter++;
7
8 if(moveCounter == 25){
9 stopTimer(draw);
10 }
11 }
12
13 function start(){
14 ball = new Circle(40);
15 add(ball);
14 setTimer(draw, 20);
15 }
How many times will the ball be moved before the animation stops?
a)25 times
b)24 times
c)26 times
d)It will not move at all.

Q&A Education