title: using variable outside of a function
body: <p>I will start by saying that i am really trying to learn node but having some difficulties. I am building a super simple Weather App that calls an API and then i want to return the data. </p>
  
  <p>But i am not sure why it wont return this data to the console?</p>
  
  <pre><code>var request = require('request');
  
  request('https://api.forecast.io/forecast/{API KEY}/42.47994,-83.13040', function (error, response, body) {
      if (!error &amp;&amp; response.statusCode == 200) {
        //var info = JSON.parse(body);
        var jsonObject = JSON.parse(body);
        var summary = jsonObject.currently.summary;
        var temp = jsonObject.currently.temperature;
        var realFeel = jsonObject.currently.apparentTemperature;
        var summary2 = jsonObject.hourly.summary;
        var max = jsonObject.daily.data[0].temperatureMax;
        var min = jsonObject.daily.data[0].temperatureMin;
      }
  })
  console.log('Todays forecast ' + summary2 + ' With a current Tempature of ' + temp + '. But feels like ' +realFeel + ' With a high of '+max+' and a low of '+min);
  </code></pre>