In the following code:
var ball;
function start(){
ball = new Circle(40);
add(ball);
setTimer(draw, 20);
}
function draw(){
(2, 2);
}
Which of the following statements are true about ball?
I - ball is a local variable
II - the ball variable in draw is different from the ball variable in start
III - ball is a global variable
IV - ball's scope includes both start and draw

Q&A Education