Ask coding questions
What is the error? It doesn't work.
You are currently calling the class not the instance.You need to call the instance as it is not a static method.
please, add semicolons!!
I used Ball.draw() and Ball.move() @Coder100
it has to be lowercase @WilliamXing
Ball is a class, you did not define any static methods for that class, so you can't do that. @WilliamXing
It says ball is not defined @Coder100
you defined ball inside a method lol @WilliamXing
How to make it bounce? @Coder100
You dont have a Ball.draw function