Here is my trying code, I am trying to generate string to multiple URLs
var customfield_13731 = "one,two,three,four,one,two,three,four"
let chunks = customfield_13731.split(",");
let res = [];
let output = [];
while (chunks.length) {
let [id, name, key, test] = chunks.splice(0, 4);
output.push({ id, name, key, test });
}
output.map((item) => {
let url = `https://test.io/639422/${item.id}/${item.name}/${item.key}/${item.test}`;
console.log(url)
document.getElementById("URL").innerHTML = url;
document.getElementById("URL").setAttribute("href", url);
});
when I am getting console.log(URL), I get multiple URL links, but I need to display a browser by dom. I can not display multiple URL in UI
My expected output would be :
https://test.io/639422/one/two/three/four
https://test.io/639422/one/two/three/four