Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Node.js Basics 2017 Create a Command Line Weather Application Retrieving Data - Solution

Notes don't === what Openweather docs says: api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}

in function get(query), you create a variable called parameters and assign it an object with two properties, APPID (which retrieves its value from the api.json file using . notation to retrieve the key) and units: "imperial".

later in the variable ZipCode, the code says is it isn't not a number, parameters.zip = otherwise parameters.q = Where are .zip and .q coming from?

how does your code const url = https:// etc etc /weather? ${querystring.stringify(parameters)} match the docs q={city name} & appid=(APIkey)