I have an array "DArr" that I want to display all the content. I use this code to set the input to the html id
document.getElementById("output").innerHTML = [DArr];
the output as expected is in this format
1,2,3,4,5
what I want is have the output in this format
1
2
3
4
5
how can I implement this?