I have an array of links and would like to use them in a href in Javascript. e.g array[i].link however i'm struggling to get the correct syntax. I've tried multiple ways e.g
"<p>Link</p>" + '<a href="array[i].link"> + array[i].link </a>'
but can't get it to work. Is there a way around it?
'<p>Link</p>' + '<a href="' + array[i].link + '">' + array[i].link </a>'