title: jquery function inside a function
body: <p>Is it possible to have a function within another function like so?</p>
  
  <pre><code>function foo() {
  
      // do something
  
      function bar() {
  
          // do something
  
      }
  
      bar();
  
  }
  
  foo();
  </code></pre>