title: How to access a function wihtin another function when added as property?
body: <p>I need to call function b from c. I am using the following code and I receive an error.
  Could you tell me what is wrong here?</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 a = function() {
    this.b = function() {
      alert('b');
    };
  };
  
  var c = function() {
    a.b();
  };
  
  c();</code></pre>
  </div>
  </div>
  </p>