title: How do you call a local function?
body: <p>So heres the basic outline</p>
  
  <pre><code>function x(){
     // some code 
     function y(){
     //some more code
    }
  }
  
  function z(){
    // how do i call function y?
  }
  </code></pre>
  
  <p>I tried </p>
  
  <pre><code>function z(){
     window[x][y];
  } 
  
  and
  
  function z(){
  x();y();
  }
  </code></pre>
  
  <p>neither works!</p>