Update the fetchCatFacts
function to fetch three random cat facts from the provided Cat Facts API endpoint and log them to the console in this format:
If the API call is successful, log the successMessage
to the console and if an error occurs during the fetch operation, log an error message in the format Error: <error-message> to the console at the error log level.
Check the HTTP response status code. If the response is not OK (e.g., 404 or 500), throw an error with the message Failed to fetch cat facts. Regardless of the fetch call's success or failure, always log the completionMessage
to the console after the task is completed.