<prompt> Kuandika kazi katika JavaScript kuonyesha mpira bouncing milele.  <response>: Heres an example of a simple function in JavaScript that displays an endlessly bouncing ball:function animateBall var ball document.getElementByIdball; var direction down; var position 0; var speed 4; setIntervalfunction if direction down position speed; ball.style.top position px; if position window.innerHeight - ball.clientHeight direction up; else position - speed; ball.style.top position px; if position 0 direction down; , 20;animateBall; 