title: Javascript promise not working how I expect
body: <p>I'm trying to get to grips with promises but I can't seem to make this work correctly. 
  I'm using NodeJS with Express</p>
  
  <p>Expected result of my code: Console.log should print the response body </p>
  
  <p>What actually happens: <code>console.log</code> prints <code>undefined</code>?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>http = require('http'),
  req = require('request'),
  reqprom =  require('request-promise'),
  
  
  reqprom('myuri')
  .then(function(request, response) {
      console.log(response.body);
  
  })
  .catch(function(err) {
      console.log(err);
  });
        
        </code></pre>
  </div>
  </div>
  </p>