title: How to access Class properties outside of JavaScript Classes
body: <p>How is the sound property not properly private in this JavaScript class? Additionally, how can it be accessed outside the class? I saw this in a video and attempted to access the sound property outside the class and could not.</p>
  
  <pre><code>class Dog {
    constructor() {
      this.sound = 'woof';
    }
    talk() {
      console.log(this.sound);
    }
  }
  </code></pre>
  
  <p>Thanks!!</p>