// Run loop through choices array
for(let i = 0; i < choices.length; i++) {
// Populate buttons to screen
let choiceBtn = document.createElement("BUTTON");
choiceBtn.classList.add("btn", "throws");
choiceBtn.setAttribute("data-choice", choices[i]);
infoScreen.appendChild(choiceBtn);
I thought i could add text from the choiceBtn variable by using
choiceBtn.innerHTML(choices[i]);
but it doesn't seem to work along with .innerText or appendChild, but I may just be doing something incorrectly. Just thought I'd ask you all.