There are two arrays, of which numbers are chosen at random. There is a ruler. The arrow from 0 to first syllable should appear. For example, if the first syllable is 7, then the arrow should be from 0 to 7. How to draw such an arrow? Attached the picture.
var x = [5, 6, 7, 8];
var y = [1, 2, 3, 4];
var randX = Math.floor(Math.random() * x.length);
var randY = Math.floor(Math.random() * y.length);
const parent = document.querySelector('#parent');
parent.innerHTML = '<b>' + x[randX] + '</b>' + '+' + '<b>' + y[randY] + '</b>' ;
<div id="parent"><b>ABCDE</b></div>