JavaScript Node.js Basics Create a Command Line Weather Application Handling Errors - Solution

Sean Flood
Sean Flood
13,370 Points

In the zip code conditional of the weather api. Why is there and parameters.q?

I understand the !isNaN part and concatenating the result of the variable with ,us to make a string for the parameters depending on whether it is a zip code or a query.

My question is why is there parameters.q and where are these each called? In the url i know it calls just plain old parameters. So why are the .q and .zip at the end of each?