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

tal Shnitzer
PLUS
tal Shnitzer
Courses Plus Student 5,242 Points

retrieving data from weather underground API: "state/city" in their code examples, "state_city" in instructor code.

it is working both ways. but How did the instructor knew it will work with the "_", it is not implicated or shown anywhere in their documentation. at least I didn't find. https://www.wunderground.com/weather/api/d/docs?MR=1