IGNORE (Weather App - Feedback, Style, and Error)

hi everyone!
Please take a look at this pen http://codepen.io/bencarp/pen/qRbKeM/4

  1. Most importantly take a look at the style. I’m using globals since the it seems more clear this way, but I am aware it is considered bad practice.
  2. when I run it I get an error in the console “error: cannot read property ‘done’ of undefined.” I guess the function should return a value which is a promise. But how do I do that? Looking for best practices.

Thanks!

Can’t see it i’m getting a 404 :frowning:

Thanks. The post with a correct link https://forum.freecodecamp.com/t/weather-app-feedback-style-and-an-error/88283 .