What would I put in the quotes at the end to make it go to the next line? I've already tried <br> and /n

for (let i = 0; i < randomIds.length; i++) {
        document.getElementById("idContent").textContent = document.getElementById("idContent").textContent + randomIds[i] + "";
    }

    altZany try replacing .textContent to .innerHTML and making sure the quotes have <br> in them. .innerHTML reads/includes HTML tags with text.

    Code:

    for (let i = 0; i < randomIds.length; i++) {
            document.getElementById("idContent").innerHTML += randomIds[i] + "<br>";
        }
    for (let i = 0; i < randomIds.length; i++) {
        document.getElementById("idContent").innerText += randomIds[i] + "\n";
    }

    Use innerText and make sure to use the right newline character combo. Don’t use <br>.
    If you really have to, create a container with display:flex; flex-flow:column; and have each child be it’s own element in that parent.

    Chat