text: // API_KEY for maps api
  // Sign-up on https://home.openweathermap.org/users/sign_up to get an API_KEY
  let API_KEY = "API_KEY_HERE";
  
  getWeatherData = (city) => {
    const URL = "https://api.openweathermap.org/data/2.5/weather";
    const weatherDataPromise = fetch(`${URL}?q=${city}&appid=${API_KEY}&units=imperial`);
    return weatherDataPromise.then((response) => {
      return response.json();
    });
  }
  
  searchCity = () => {
    const city = document.getElementById('city-input').value;
    getWeatherData(city).then((cityData) => {
      console.log(cityData);
      showWeatherData(cityData);
    }).catch(error => {
      console.log(error);
    });
  }
  
  showWeatherData = (weatherData) => {
    document.getElementById('city-name').innerText = weatherData.name;
    document.getElementById('weather-type').innerText = weatherData.weather[0].main;
    document.getElementById('temp').innerText = weatherData.main.temp;
    document.getElementById('min-temp').innerText = weatherData.main.temp_min;
    document.getElementById('max-temp').innerText = weatherData.main.temp_max;
  }
  
  