function when_submit(event) {
  event.preventDefault();
  let city_name = event.target.city_name.value;
  let min_cust = parseInt(event.target.min_cust.value);
  let max_cust = parseInt(event.target.max_cust.value);
  let Avg_Cookie = parseInt(event.target.Avg_Cookie.value);
  let newobj = new Salmon_cookie(city_name, min_cust, max_cust, Avg_Cookie);
  newobj.render();
  table.removeChild(trf);
  footer();
}
//////////////////////////////////////////////when user clink on submit Function////////////////////////////////////
when user clink on submit Function
when user clink on submit Function
function when_submit(event) {
  event.preventDefault();
  let city_name = event.target.city_name.value;
  let min_cust = parseInt(event.target.min_cust.value);
  let max_cust = parseInt(event.target.max_cust.value);
  let Avg_Cookie = parseInt(event.target.Avg_Cookie.value);
  let newobj = new Salmon_cookie(city_name, min_cust, max_cust, Avg_Cookie);
  newobj.render();
  table.removeChild(trf);
  footer();
}
function when_submit ( event ) { event . preventDefault ( ) ; let city_name = event . target . city_name . value ; let min_cust = parseInt ( event . target . min_cust . value ) ; let max_cust = parseInt ( event . target . max_cust . value ) ; let Avg_Cookie = parseInt ( event . target . Avg_Cookie . value ) ; let newobj = new Salmon_cookie ( city_name , min_cust , max_cust , Avg_Cookie ) ; newobj . render ( ) ; table . removeChild ( trf ) ; footer ( ) ; }
when user clink on submit Function
when user clink on submit Function