async function getCurrencies() {
const response = await fetch(
"https://api.github.com/repos/javascript-tutorial/en.javascript.info/commits"
);
// if (!response) { const response = await fetch(https://raw.githubusercontent.com/webdataorg/webdata-api/master/package.json"); }
const data = await response.json();
const result = await data;
}
async function getCurrencies() {
let response = await fetch("https://api.github.com/repos/javascript-tutorial/en.javascript.info/commits");
if (!(await response.json())) response = await fetch("https://raw.githubusercontent.com/webdataorg/webdata-api/master/package.json");
const result = await response.json();
}