function showCart() {

  // TODO: Find the table body

  // TODO: Iterate over the items in the cart
  // TODO: Create a TR
  // TODO: Create a TD for the delete link, quantity,  and the item
  // TODO: Add the TR to the TBODY and each of the TD's to the TR

  for (let i = 0; i < cart.items.length; i++) {
    let tr = document.createElement('tr');
    let deleteItem = document.createElement('Delete');
    let quantity = document.createElement('td');
    let itemElement = document.createElement('td');
    let deleteItems = document.createElement('td');
    let image=document.createElement('td');
    deleteItem.textContent = 'X';
    deleteItem.setAttribute('href', '#');
    deleteItem.setAttribute('att', cart.items[i].itemSelected);
    quantity.textContent = cart.items[i].quantitySelected;
    itemElement.textContent = cart.items[i].itemSelected;
    deleteItems.appendChild(deleteItem);
    tr.appendChild(deleteItems);
    tr.appendChild(quantity);
    tr.appendChild(itemElement);
    tabelElement.appendChild(tr);

  }





}
// TODO: Fill in the <tr>'s under the <tbody> for each item in the cart
Fill in the 's under the  for each item in the cart
Fill in the ' s under the for each item in the cart
function showCart() {
  for (let i = 0; i < cart.items.length; i++) {
    let tr = document.createElement('tr');
    let deleteItem = document.createElement('Delete');
    let quantity = document.createElement('td');
    let itemElement = document.createElement('td');
    let deleteItems = document.createElement('td');
    let image=document.createElement('td');
    deleteItem.textContent = 'X';
    deleteItem.setAttribute('href', '#');
    deleteItem.setAttribute('att', cart.items[i].itemSelected);
    quantity.textContent = cart.items[i].quantitySelected;
    itemElement.textContent = cart.items[i].itemSelected;
    deleteItems.appendChild(deleteItem);
    tr.appendChild(deleteItems);
    tr.appendChild(quantity);
    tr.appendChild(itemElement);
    tabelElement.appendChild(tr);
  }
}
function showCart ( ) { for ( let i = 0 ; i < cart . items . length ; i ++ ) { let tr = document . createElement ( 'tr' ) ; let deleteItem = document . createElement ( 'Delete' ) ; let quantity = document . createElement ( 'td' ) ; let itemElement = document . createElement ( 'td' ) ; let deleteItems = document . createElement ( 'td' ) ; let image = document . createElement ( 'td' ) ; deleteItem . textContent = 'X' ; deleteItem . setAttribute ( 'href' , '#' ) ; deleteItem . setAttribute ( 'att' , cart . items [ i ] . itemSelected ) ; quantity . textContent = cart . items [ i ] . quantitySelected ; itemElement . textContent = cart . items [ i ] . itemSelected ; deleteItems . appendChild ( deleteItem ) ; tr . appendChild ( deleteItems ) ; tr . appendChild ( quantity ) ; tr . appendChild ( itemElement ) ; tabelElement . appendChild ( tr ) ; } }
TODO: Fill in the <tr>'s under the <tbody> for each item in the cart
TODO : Fill in the <tr > ' s under the <tbody > for each item in the cart
// TODO: Find the table body // TODO: Iterate over the items in the cart // TODO: Create a TR // TODO: Create a TD for the delete link, quantity,  and the item // TODO: Add the TR to the TBODY and each of the TD's to the TR