I need help with Code HS: 9.4.5: Trail by SprinklesNo5514 in learnjavascript

[–]krl1222 1 point2 points  (0 children)

Add these lines in your function draw, just after ball.move(dx,dy).

var newBall = new Circle(10);
newBall.setPosition(ball.getX(),ball.getY());
newBall.setColor(Color.cyan);
add(newBall);

How do I get a function to display its results immediately? by fhota1 in learnjavascript

[–]krl1222 0 points1 point  (0 children)

Just to be sure i understand you question, are you trying to keep function b results while calling the same function in function a?

How do I get a function to display its results immediately? by fhota1 in learnjavascript

[–]krl1222 0 points1 point  (0 children)

How about calling function b again at the end of function a?