js/catalog.js
// (the things in the Product.allProducts array) into the drop down list.
(the things in the Product.allProducts array) into the drop down list.
( the things in the Product . allProducts array ) into the drop down list .
function populateForm() {
  const selectElement = document.getElementById('items');
  for (let i in Product.allProducts) {
    const optionElement = document.createElement('option');
    selectElement.appendChild(optionElement);
    optionElement.textContent = Product.allProducts[i].name;
  }
}
function populateForm ( ) { const selectElement = document . getElementById ( 'items' ) ; for ( let i in Product . allProducts ) { const optionElement = document . createElement ( 'option' ) ; selectElement . appendChild ( optionElement ) ; optionElement . textContent = Product . allProducts [ i ] . name ; } }
(the things in the Product.allProducts array) into the drop down list.
( the things in the Product . allProducts array ) into the drop down list .
//TODO: Add an <option> tag inside the form's select for each product