function formatAllTimeZones() {
  var timeZoneTable = "<tr><th>Country Code</th><th>Country Name</th><th>Zone Name</th><th>Time</th><th>Date</th><th>Add</th></tr>";
  allTimeZonesToRender.forEach(function (timeZone, index) {
    var row = "<tr><td>".concat(timeZone.countryCode, "</td><td>").concat(timeZone.countryName, "</td><td>").concat(timeZone.zoneName, "</td><td>").concat(timeZone.zoneTimeDate.format("HH:mm:ss"), "</td><td>").concat(timeZone.zoneTimeDate.format("DD-MM-YYYY"), "</td><td>  <button id=\"").concat("Add_" + String(index), "\">Add</button></td></tr>");
    timeZoneTable = timeZoneTable + row;
  });
  document.getElementById("timeZonesTable").innerHTML = timeZoneTable;
} //this renders the time zones in favoriteTimeZonesToRender
// this renders the timeZones in allTimeZonesToRender.
this renders the timeZones in allTimeZonesToRender.
this renders the timeZones in allTimeZonesToRender .
function formatAllTimeZones() {
  var timeZoneTable = "<tr><th>Country Code</th><th>Country Name</th><th>Zone Name</th><th>Time</th><th>Date</th><th>Add</th></tr>";
  allTimeZonesToRender.forEach(function (timeZone, index) {
    var row = "<tr><td>".concat(timeZone.countryCode, "</td><td>").concat(timeZone.countryName, "</td><td>").concat(timeZone.zoneName, "</td><td>").concat(timeZone.zoneTimeDate.format("HH:mm:ss"), "</td><td>").concat(timeZone.zoneTimeDate.format("DD-MM-YYYY"), "</td><td>  <button id=\"").concat("Add_" + String(index), "\">Add</button></td></tr>");
    timeZoneTable = timeZoneTable + row;
  });
  document.getElementById("timeZonesTable").innerHTML = timeZoneTable;
} 
function formatAllTimeZones ( ) { var timeZoneTable = "<tr><th>Country Code</th><th>Country Name</th><th>Zone Name</th><th>Time</th><th>Date</th><th>Add</th></tr>" ; allTimeZonesToRender . forEach ( function ( timeZone , index ) { var row = "<tr><td>" . concat ( timeZone . countryCode , "</td><td>" ) . concat ( timeZone . countryName , "</td><td>" ) . concat ( timeZone . zoneName , "</td><td>" ) . concat ( timeZone . zoneTimeDate . format ( "HH:mm:ss" ) , "</td><td>" ) . concat ( timeZone . zoneTimeDate . format ( "DD-MM-YYYY" ) , "</td><td>  <button id=\"" ) . concat ( "Add_" + String ( index ) , "\">Add</button></td></tr>" ) ; timeZoneTable = timeZoneTable + row ; } ) ; document . getElementById ( "timeZonesTable" ) . innerHTML = timeZoneTable ; }
this renders the timeZones in allTimeZonesToRender.
this renders the timeZones in allTimeZonesToRender .
//this renders the time zones in favoriteTimeZonesToRender