Open teolemon opened 2 years ago
This issue is stale because it has been open 90 days with no activity.
Hey I am new to open source contributions. I have so far fetched all the country names from the JSON file:
async function fetchdata(){
const url = 'https://static.openfoodfacts.org/data/taxonomies/countries.json';
const response = await fetch(url);
// Wait until the request is completed
const datapoints = await response.json();
console.log(datapoints);
return datapoints;
}
fetchdata().then((datapoint)=>{
for(const item of Object.keys(datapoint)){
console.log(item)
}
})