title: Call javascript function from chrome developer console
body: <p>Very simple script:</p>
  
  <pre><code>function foo(){
      return "bar"
  }
  
  console.log( foo() );
  </code></pre>
  
  <p>console:</p>
  
  <pre><code>&gt; bar // sanity test that proves everything's working
  &gt; foo(); // this guy is key!
  &gt; ReferenceError: foo is not defined
  </code></pre>
  
  <p>How should I call foo(); for debugging and experimentation purposes?</p>
  
  <p>Is this not a practise? I love using IRB / Rails Console to verify my ruby code and want to do the same with JavaScript</p>
  
  <p><a href="http://jsfiddle.net/m2muL/" rel="noreferrer">http://jsfiddle.net/m2muL/</a></p>