I am trying to get to the country region data label here:Snapshot of jsonusing this code here:async function getTimeSeries() {try {axios.responseType = 'json';const response = await axios.get( 'https://pkgstore.datahub.io/core/covid-19/time-series-19-covid-combined_json/data/845fcaa5cc5dac944cf798f2bc96c46f/time-series-19-covid-combined_json.json') .then(function (response) {console.log(response.data);console.log(response.status);console.log(response.statusText);console.log(response.headers);console.log(response.config);response.data .forEach(({ Date, Confirmed, Recovered, Deaths }) =>console.log(\**$(Country/Region)** : ${Date} active cases: ${Confirmed - Recovered - Deaths}`)) });`And my console looks like this:$(Country/Region) : 2020-03-05 active cases: 0I have tried putting Country/Region in quotes, and even removed the slash but now luck. Any ideas?
Submitted March 25, 2020 at 09:58PM by hololensful
No comments:
Post a Comment