async function BackendAPI() {
let isLoading = true;
try {
const response = await fetch(URL, paramsFetch)
const data = await response.json()
return data
} catch (err) {
} finally {
return isLoading
}
}
[[Prototype]]: Promise
[[PromiseState]]: "fulfilled"
[[PromiseResult]]: Object
"use strict";
async function RenderCurrencies() {
const API_KEY = 'ea1ecb2431c7cc30724620c2b4c2fc24'
const response = await fetch(`http://api.exchangeratesapi.io/v1/latest?access_key=${API_KEY}`)
const data = await response.json()
const currencies = await data.rates
return currencies
}
let newVar = RenderCurrencies()
.then(result => {
return result
})
console.log(newVar);
Как удалить папку Яндекс. Диск из панели проводника?