-
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)
}