January 2018
Beginner
658 pages
13h 10m
English
Inside of the Terminal, we'll go back to run two node app.js commands; the command where we used the zip code of 19147, everything works as expected and a bad zip code 000000, to show the error message.
As shown in the following code output, we can see our results object with an address property, a latitude property, and a longitude property:

In case of a bad zip code, we just want to make sure the error message still shows up, and it does, Unable to find that address. prints to the screen, as shown here:
This is happening because of the if statement in the geocodeAddress function in app.js ...
Read now
Unlock full access