// Leave the next line, the form must be assigned to a variable named 'form' in order for the exercise test to pass
const form = document.querySelector('form');
const product = document.querySelector("#product");
const qty = document.querySelector("#qty");
const groceryList = document.querySelector('#list');
form.addEventListener("submit", function(evt){
evt.preventDefault();
const newLI = document.createElement("LI");
//innerHTML or innerText or textContent
newLI.innerHTML = `${product.value}${qty.value}`
groceryList.appendChild(newLI);
product.value = ""
qty.value = ""
});