title: what's different between Object.prototype.toString.call and typeof
body: <p>I'm noob of javascript and I'm confused what's difference with following methods.</p>
  
  <pre><code>function foo(){};
  var bar = new Object();
  
  Object.prototype.toString.call(foo).slice(8, -1);    // output "Function"
  typeof foo;                                          // output "function"
  
  Object.prototype.toString.call(bar).slice(8, -1);    // output "Object"
  typeof bar;                                          // output "object"
  </code></pre>