function changePosition(x,y){
    database.ref("ball/pos").set({
      x: ball.x + x, 
      y: ball.y + y
    })
}
//write the values in the database
write the values in the database
write the values in the database
function changePosition(x,y){
    database.ref("ball/pos").set({
      x: ball.x + x, 
      y: ball.y + y
    })
}
function changePosition ( x , y ) { database . ref ( "ball/pos" ) . set ( { x : ball . x + x , y : ball . y + y } ) }
write the values in the database
write the values in the database