title: console.log without arguments? How does this work?
body: <p>Probably a very basic question but I haven't found an answer in the docs or Google...</p>
  
  <p>I was doing <a href="http://nodeschool.io" rel="nofollow">nodeschool's</a> "learnyounode" module, and for an intro to http client question found an official answer that used <code>console.log</code> without arguments (and indeed as args in another function, but that I understand) :</p>
  
  <pre><code>var http = require('http')
  
  http.get(process.argv[2], function (response) {
        response.setEncoding('utf8')
        response.on('data', console.log)
        response.on('error', console.error)
    })
  </code></pre>
  
  <p><strong>How does this work?</strong> It looks clean and obvious, but I'm not sure I can use this style confidently without better understanding what's going on.</p>
  
  <hr>
  
  <p>Btw for comparison (and to see what I'm not understanding), here's my own very similar, but longer answer:</p>
  
  <pre><code>var http = require('http');
  
  http.get(process.argv[2], function callback(response) {
      response.setEncoding('utf8');
      response.on('data', function(data) {
          console.log(data);
      });
      response.on('error', function(error) {
          console.error(error);
      });
  });
  </code></pre>