title: Why doesn't my capitalization function run as expected?
body: <p>Not sure what is wrong with my code. I want to capitalize each word from input field and display it in "showcase". </p>
  
  <p>Below is my code:</p>
  
  <p>
      
      Convert
     </p>
  
  <pre><code>&lt;script&gt;
  function convert(sst) {
      return sst.charAt(0).toUpperCase() + sst.slice(1);
      document.getElementById("showcase").innerHTML = n;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p></p>