January 2018
Beginner
658 pages
13h 10m
English
Before we continue learning about HTTP and what exactly is inside of error, response, and body, let's take a quick moment to talk about how we can pretty print an object to the screen. As we saw in the last subsection, when we ran our app with node app.js, the body prints to the screen.
But since there is a lot of objects nested inside of each other, JavaScript starts clipping them:

As shown in the preceding screenshot, it tells us an object is in the results, but we don't get to see exactly what the properties are. This takes place for address_components, geometry, and types. Obviously this is not useful; what we want ...