title: Function Declarations Within Blocks according to the Google JavaScript style guide
body: <p>According to the Google JavaScript style guide, function declarations should not be declared within blocks since this is not a part of ECMAScript. However, I'm not entirely clear on what counts as a block.</p>
  
  <p>Specifically, I have a constructor function and I want to define a function within the scope of that constructor. Would this count as a function within a block, since it is within a set of {}? If so, does that mean every function declaration must be global?</p>
  
  <p>Some code for good measure:</p>
  
  <h2>WRONG (?)</h2>
  
  <pre><code>function Constructor() {
      function Shout () { alert('THE BEST UX IS IN ALL CAPS.'); }
  }
  </code></pre>
  
  <h2>RIGHT (?)</h2>
  
  <pre><code>function Constructor() {
      var Shout = function () { alert('THE BEST UX IS IN ALL CAPS.'); };
  }
  </code></pre>