title: Get value from callback
body: <p>I use <a href="https://github.com/mapbox/node-sqlite3" rel="nofollow">sqlite3</a> module for node.js and I get values from table with cursor, like this:</p>
  
  <pre><code>db = new sqlite3.Database(config.sqlite3config.path);
  
  statement = db.prepare("SELECT * FROM test_table");
  
  var temp = {};
  statement.get(function(err, col) {
     temp = col;
  });
  
  console.log(temp);
  </code></pre>
  
  <p>At last <strong>console.log</strong> I get empty js-object, but I want to get <strong>statement.get</strong> function result, how I can get col value from callback?</p>