catch bloğu ekler misin ?
const url = "https://api.openweathermap.org/data/2.5/";
const key = "5c9de763fb62812ac2636067dc0ea6cb";
const setQuery = (e) => {
if (e.keyCode === 13) {
getResult(searchBar.value);
}
};
const getResult = (cityName) => {
let query =...