title: Could someone please explain, why I get this error in Javascript
body: <pre><code>const cowSound = 'moo';
  function makeSound() {
    console.log('My cow goes', cowSound);
    const cowSound = 'baa';
    console.log('My cow goes', cowSound);
  }
  
  makeSound();
  </code></pre>
  
  <p>VM174:3 Uncaught ReferenceError: Cannot access 'cowSound' before initialization</p>