title: Public vs Private Properties Inside Constructors
body: <p>I've found similar questions, but none that answer this explicitly, so I hope someone can help clear this up for me.</p>
  
  <p>In regards to constructor functions, I am trying to figure if <strong>variables and functions are, by default, public or private.</strong></p>
  
  <p>For example, I have this sample constructor with these properties:</p>
  
  <pre><code>function Obj() {
    this.type = 'object';
    this.questions = 27;
    this.print = function() {
      console.log('hello world');
    }
  }
  </code></pre>
  
  <p>I can call these properties as such:</p>
  
  <pre><code>var box = new Obj();
  box.type; // 'object'
  box.print(); // 'hello world'
  </code></pre>
  
  <p>It seems to me like both functions and variables are public by default. Is that right? 
  <strong>Or, if functions inside constructors are private... can they only take private variables as parameters?</strong></p>
  
  <p>Thank you.</p>