We are building a feature for a tourism app that helps users identify countries where a specific currency is used. Your task is to complete the implementation of the fetchCountryInfo function by making an API request to retrieve country details based on the currency code entered by the user and assign the value to the variable countryDetails
.
For this, use the data from https://restcountries.com/
and update the value of the CURRENCY_API_ENDPOINT
variable to connect to the appropriate API endpoint for retrieving country information based on currency codes.