function submitStoreData(event) {
  event.preventDefault();
  var newStore = new Store(salesForm.storeName.value, parseInt(salesForm.minCustomersPerHour.value), parseInt(salesForm.maxCustomersPerHour.value), parseFloat(salesForm.avgCookiesPerHour.value));
  event.target.reset();
  newStore.render();
  var foot = document.getElementById('footer-row');
  foot.remove();
  makeFooterRow();
}
/*Data entered in the forms is used to create and render a new Store instance, then the values are reset, the footer is removed then readded
so that the makeFooterRow function can remake the row with the updated totals of all stores.*/
Data entered in the forms is used to create and render a new Store instance, then the values are reset, the footer is removed then readded
so that the makeFooterRow function can remake the row with the updated totals of all stores.
Data entered in the forms is used to create and render a new Store instance then the values are reset the footer is removed then readded so that the makeFooterRow function can remake the row with the updated totals of all stores .
function submitStoreData(event) {
  event.preventDefault();
  var newStore = new Store(salesForm.storeName.value, parseInt(salesForm.minCustomersPerHour.value), parseInt(salesForm.maxCustomersPerHour.value), parseFloat(salesForm.avgCookiesPerHour.value));
  event.target.reset();
  newStore.render();
  var foot = document.getElementById('footer-row');
  foot.remove();
  makeFooterRow();
}
function submitStoreData ( event ) { event . preventDefault ( ) ; var newStore = new Store ( salesForm . storeName . value , parseInt ( salesForm . minCustomersPerHour . value ) , parseInt ( salesForm . maxCustomersPerHour . value ) , parseFloat ( salesForm . avgCookiesPerHour . value ) ) ; event . target . reset ( ) ; newStore . render ( ) ; var foot = document . getElementById ( 'footer-row' ) ; foot . remove ( ) ; makeFooterRow ( ) ; }
Data entered in the forms is used to create and render a new Store instance, then the values are reset, the footer is removed then readded
so that the makeFooterRow function can remake the row with the updated totals of all stores.
Data entered in the forms is used to create and render a new Store instance then the values are reset the footer is removed then readded so that the makeFooterRow function can remake the row with the updated totals of all stores .