Assessment wanted for bouncing-balls

Hi, can you plz give me your opinion on this code?

CODE PEN LINK

Hello @Ghazaleh_Heravi

you doing great just a little notice when the game start some of the pool pass the edge of the canvas which lead to unwanted behavier so check the the start point of each pool make the whole pool inside the canvas

but beside that you doing great

well done and have a nice day :slight_smile:

thank you a lot

I fixed that behavior and tried to add the other feature, ball collision, and now I have a bigger problem, I tried my best to solve it, I even compare my code to the live code on mdn but no clue what’s going wrong with mine, there is just one part that is different from mdn’s, the way that I implemented direction and ball moves

codepen link

you very welcome @Ghazaleh_Heravi

i really can not spot the issue but i notice that your code also make the balls disappear after while

idk why also

sorry

thank you so much for your time any way :slight_smile:
It drove me crazy so I put it away for a few days and got back to it yesterday and now it’s working! + evilcircle :slight_smile:
again thanks for your help
copepen-link

you very welcome @Ghazaleh_Heravi

and and sorry for late replay
and well done :slight_smile: