const coordinates=[{x:12, y:13}, {x:56, y: 45}]; const points=coordinates.map(point=>`${point.x},${point.y}`).join(' ');