Closed gstark closed 6 years ago
weather-api-gabeo14.surge.sh
https://github.com/gabeo14/weather-api/tree/oop-refactor
Got it working after some struggle. I inspected Matt's code though, and I instantly recognized the problem. Thanks for the push in the right direction today Gavin!
Your homework is: Meets Expectations
Yesterday you created a simple weather viewer. Today, we discussed a new topic,
Object Oriented Programing
. This involved the thought of abstraction and encapsulation (among other ideas). For tonight, refactor your code to use classes to encapsulate and abstract your code and ideas from yesterday.Objectives
Requirements
Explorer Mode
WeatherAPI
. It should have a view properties suchAPI_URL
and few methods such asgetWeatherByZipCode
addForecastToDOM
andgetUserInput
git push origin oop-refactor
Adventure Mode
DOMContentLoaded
. That method should be calledrender
Epic Mode