Elemen Pindah JavaScript ke Koordinat

const el = document.getElementById('element-id')

const position = {
	x: 500,
    y: 50
}

el.style.position = 'absolute'
el.style.left = `${position.x}px`
el.style.top = `${position.y}px`
florinrelea