You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Api get call to coinBase api using fetch in javascript
fetch(url).then(res=>res.json())
.then((json)=>{
varcryptoPrice=json.data.rates;//storing cryptocurrencies rate as key value json data in cryptoPrice object
for(varkeyincryptoPrice){
cryptoPrice[key]=1/cryptoPrice[key];//as the value of crytoPrice is for 1 rs we need price of cryptocurrency in terms of inr we are doing 1/(crypto price for 1INR)