January 2018
Beginner
658 pages
13h 10m
English
To get started, let's make a brand new directory in the weather-app folder, that's the first thing we need to do. The directory is called geocode, which aligns with the require statement we have in the geocode variable. In geocode folder, we'll make our file geocode.js:

Now inside of geocode.js, we can get started by loading in request, let's make a constant called request, and we'll set it equal to require('request'):
const request = require('request');
Now we can go ahead and define the function responsible for geocoding, this one will be called geocodeAddress. We'll make a variable called geocodeAddress, setting it ...