Here I am learning about Callback functions and API to make weather app on node but when I am running the app on Terminal it says undefined I don't know why?
const request = require("request");
request({
URL: "http://maps.googleapis.com/maps/api/geocode/json?address=1301%20lombard%20street%20philadelphia",
json: true
}, (error, response, body) => {
console.log(body);
});
errorandresponseas well and post those here if you still need help. Please also post a link to therequestlibrary you are using as it's hard to guess what the callback's signature might be without knowing what library you are using.