You are given a function fetchWeather
that simulates retrieving weather data from a remote API. Write a function getWeather
that takes a location
as input and handles both success and failure cases and logs the corresponding message to the console. Finally, invoke the function getWeather
with the value Kochi.