title: Class vs Function Constructors in JavaScript
body: <p>Background: C# developer recently diving into javascript</p>
  
  <p>Below are two ways of creating objects in JavaScript. What's the difference between them, which method should I use/prioritize when creating objects and why?</p>
  
  <pre><code>class John {
      constructor(name, birth, height) {
          this.name = name;
          this.birth = birth;
          this.height = height;} }
  
  var Person = function(name, birth, height) {
      this.name = name;
      this.birth = birth;
      this.height = height;}
  </code></pre>