title: how to call a internal javascript function in object notation
body: <p><strong>Solution:</strong>
  Yay, using <code>this.setName()</code> worked! </p>
  
  <p><strong>Problem:</strong>
  1) Didn't know how to properly title this question
  2) I am trying to call a <code>setName()</code> from inside of <code>getName()</code></p>
  
  <p><strong>Javascript:</strong></p>
  
  <pre><code>window.login
  chat = {
      setName: function( ) {
      },
  
      getName( ) {
          //i want to call setName() here, is that possible?
          //i tried chat.setName() and setName(), both failed.
      }
  }
  </code></pre>
  
  <p>Very simple question, I just am not too knowledgeable in JavaScript. Thank you for the suggestions/help/advice! </p>