title: Can't call a function inside another function
body: <p>I have this code:</p>
  
  <pre class="lang-js prettyprint-override"><code>function myFunction() {
  
    console.log("Something")
  
    this.somethingElse = event =&gt; console.log("Something else")
  
  }
  </code></pre>
  
  <p>When I evoke the function using <code>myFunction()</code> I get <strong><em>Something</em></strong> printed out in the console. But evoking <code>myFunction.somethingElse()</code> throws an error saying <code>myFunction.somethingElse()</code> is not a function. </p>
  
  <p>What am I getting wrong?</p>