title: Javascript execution error in Sublime
body: <p>I am learning JavaScript and this is my 1st week :)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var Module = (function () {
      // code
      var publicMethod = {};
  
      var privateMethod = function(someStringToBePassed) {
          debug("I love USA. "+someStringToBePassed);
      }
  
      publicMethod.someFunction = function() {
          privateMethod("USA is sexy");
      }
      return publicMethod;
  })();
  
  debug(Module.someFunction());</code></pre>
  </div>
  </div>
  </p>
  
  <p>I am executing this in Sublime. I am seeing the following result. </p>
  
  <pre><code>--&gt; I love USA. USA is sexy
  --&gt; undefined 
  </code></pre>
  
  <p>Please explain why I am seeing undefined here.</p>
  
  <pre><code>[Finished in 0.0s]
  </code></pre>
  
  <p>Please tell me why I am seeing "undefined" in the results</p>