logo
logo

Crypto API Fetch

Beginner

Crypto API Fetch

Create a function named
getCryptoData
that uses the Fetch API to retrieve the current price of Bitcoin in USD from the following API:
https://api.coindesk.com/v1/bpi/currentprice.json
. Once the data is retrieved, log the current price of Bitcoin to the console.
Console
Submit
Solution
00:00