title: How do you create a method for a custom object in JavaScript?
body: <p>Is it like...</p>
  
  <pre><code>var obj = new Object();
  
  obj.function1 = function(){
      //code
  }
  </code></pre>
  
  <p>or something like that?</p>