title: Proper way of writing Methods / Routines that don't return values in Javascript Classes
body: <p>I'm trying to define a Method (or routine) that do not return any value, inside a class. </p>
  
  <pre><code>function _class()
  {
    this.function _classMethod(){}
  }
  </code></pre>
  
  <p>It gives me an <code>SyntaxError: missing ; before statement</code> at the line <code>_classMethod()</code> is defined.</p>
  
  <p>I'm aware that I can write methods like this-</p>
  
  <pre><code>function _class()
  {
    this._classMethod = function(){}
  }
  </code></pre>
  
  <p>And this actually works.</p>
  
  <p>But in my case, <code>_classMethod()</code> has nothing to return. It's just supposed to get objects by reference and do it's stuff. </p>
  
  <p><s>Any better / alternate way of achieving what I want here?</s></p>
  
  <p>I was mistaken about the way functions in JavaScript works. The regular style suits my needs.</p>