title: Why does ReSharper warn a function is used before it is declared?
body: <p>I have written JavaScript code with a layout as seen below:</p>
  
  <pre><code>function MyObject() {
      this.doSomething(){
          someSubRoutine();
      }
  
      function someSubRoutine(){
          //Sub-routine code here
      }
  }
  </code></pre>
  
  <p>ReSharper warns me that</p>
  
  <blockquote>
    <p>Function 'someSubRoutine' is used before it is declared</p>
  </blockquote>
  
  <p>It is true that the function is used before it is declared, but is there an actual reason ReSharper is recommending I declare my function prior to usage? I figured due to JavaScript's hoisting abilities, this wouldn't be a problem. Should I be following this recommendation or just continue ignoring it?</p>