Create a method fetchMultiSource(urls)
where urls
is an array of URL strings. The method attempts to fetch data from each URL in order.
If a fetch fails (either due to a network error or a non-OK HTTP response), the method should log Fetch failed for <url> and proceed to the next URL.
Otherwise, it should return the JSON data from the first successful fetch.
If all fetch attempts fail, throw an error with the message: All fetches failed.
For example: