function print_covid_stats(statsobj) {
  const country_name = statsobj["Country"] || "the world";
  const confirmed_cases = statsobj["NewConfirmed"];
  const recovered_today = statsobj["NewRecovered"];
  const deaths_today = statsobj["NewDeaths"];
  msg = `COVID-19 stats for ${country_name}:
     Confirmed cases today: ${confirmed_cases}
     Recovered today: ${recovered_today}
     Deaths today: ${deaths_today}`;
  console.log(msg);
}
// Parses COVID-19 stats and prints them.
Parses COVID-19 stats and prints them.
Parses COVID - 19 stats and prints them .
function print_covid_stats(statsobj) {
  const country_name = statsobj["Country"] || "the world";
  const confirmed_cases = statsobj["NewConfirmed"];
  const recovered_today = statsobj["NewRecovered"];
  const deaths_today = statsobj["NewDeaths"];
  msg = `COVID-19 stats for ${country_name}:
     Confirmed cases today: ${confirmed_cases}
     Recovered today: ${recovered_today}
     Deaths today: ${deaths_today}`;
  console.log(msg);
}
function print_covid_stats ( statsobj ) { const country_name = statsobj [ "Country" ] || "the world" ; const confirmed_cases = statsobj [ "NewConfirmed" ] ; const recovered_today = statsobj [ "NewRecovered" ] ; const deaths_today = statsobj [ "NewDeaths" ] ; msg = ` ${ country_name } ${ confirmed_cases } ${ recovered_today } ${ deaths_today } ` ; console . log ( msg ) ; }
Parses COVID-19 stats and prints them.
Parses COVID - 19 stats and prints them .