title: What does the const inside a function do in js?
body: <p>I am a beginner. I am learning about variables right now but I cannot understand what the second const in this code does. Can someone explain?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const name = "asus computer"
  function toUpper(text) {
      const upperCased = text.toUpperCase();
      console.log(upperCased);
  }
  
  toUpper(name);</code></pre>
  </div>
  </div>
  </p>