javascript innerHTML is working because i can see it in my developer’s tools console log but its not rendering the items on my screen

  • List item

    const textBox = document.getElementsByClassName(“container1”)
    const button = document.getElementsByClassName(“submit”)
    const textInput = document.getElementsByClassName(“textinput”)
    let items = [“yam”, “apple”, “veggies”, “milk”]
    console.log(textInput)
    /this section below is just to render out the items in the items arrays on my screen/
    for(let i = 0;i<items.length;i++){
    textBox.innerHTML += <p>${items[i]}</p>
    textBox.textContent += items[i]
    console.log(textBox.innerHTML)
    }