title: Convention for Javascript Domain Model Objects
body: <p>If I have to create a domain model object in C# I might do something like this:</p>
  
  <pre><code>public class Person
  {
      Public string Name { get; set; }
      Public string Gender { get; set; }
      Public int Age { get; set; }
  }
  </code></pre>
  
  <p>In Javascript, what is the convention for defining such objects? I'm thinking something like this:</p>
  
  <pre><code>NAMESPACE.Person = function() {
      this.name = "";
      this.gender = "";
      this.age = 0;
  }
  </code></pre>