title: jQuery function scope and accessing the function outside the scope
body: <p>I have a jquery file with the following structure::</p>
  
  <pre><code>(function($) {
  
  var MYTEST= {
  
         init: function() {
            alert('Hello World');
         }
         exec: function() {
              alert('function executed');
         }
      }
  
    $(function() {
       MYTEST.init();
    })
  
  }(jQuery))
  </code></pre>
  
  <p>I want to access the second function ie, 'exec' in another file or outside the jQuery scope. to make it clear some thing like this::</p>
  
  <pre><code> (function($) {
  
          var MYTEST= {
          .
          .
          }
  
   }(jQuery))
  
      $(function() {
           MYTEST.exec();
      })
  </code></pre>
  
  <p>I know the above code will not work, just to get idea. How can I access that function outside(I actually not aware of the specific jargon to explain the situation in javascript, sorry for that)</p>