/weather

Primary LanguageJavaScript

Is the weather the same in New York and L.A.?

screenshot of istheweatherthesameinnewyorkandla.com

This project is a single-serving site to help answer the age-old question: Is the weather the same in New York and L.A.? The app performs an openweathermap.org API call, then uses the JSON response to determine weather conditions and temperature. Finally, data is compared to return one of the following responses, depending on both cities' weather conditions:

  • Within 2 degrees: "Yes."
  • Within 6 degrees: "Pretty close."
  • Within 10 degrees: "Sort of."
  • Within 14 degrees: "Not really."
  • 15 degrees or more: "Nope."

Technology used: API call to openweathermap.org, JS, jQuery, CSS, HTML