title: Private properties in JavaScript ES6 classes
body: <p>Is it possible to create private properties in ES6 classes?</p>
  
  <p>Here's an example.
  How can I prevent access to <code>instance.property</code>?</p>
  
  <pre><code>class Something {
    constructor(){
      this.property = "test";
    }
  }
  
  var instance = new Something();
  console.log(instance.property); //=&gt; "test"
  </code></pre>