function addFavoriteTimeZonesListners() {
  favoriteTimeZonesToRender.forEach(function (zone, index) {
    const button = document.getElementById("Remove_" + String(index));
    if (button) {
      button.addEventListener("click", function () {
        removeFavoriteTimeZone(index);
      });
    }
  });
}
// this adds the remove buttons to the favoriteTimeZones table
this adds the remove buttons to the favoriteTimeZones table
this adds the remove buttons to the favoriteTimeZones table
function addFavoriteTimeZonesListners() {
  favoriteTimeZonesToRender.forEach(function (zone, index) {
    const button = document.getElementById("Remove_" + String(index));
    if (button) {
      button.addEventListener("click", function () {
        removeFavoriteTimeZone(index);
      });
    }
  });
}
function addFavoriteTimeZonesListners ( ) { favoriteTimeZonesToRender . forEach ( function ( zone , index ) { const button = document . getElementById ( "Remove_" + String ( index ) ) ; if ( button ) { button . addEventListener ( "click" , function ( ) { removeFavoriteTimeZone ( index ) ; } ) ; } } ) ; }
this adds the remove buttons to the favoriteTimeZones table
this adds the remove buttons to the favoriteTimeZones table