title: How do I make the first letter of a string uppercase in JavaScript?
body: <p>How do I make the first letter of a string uppercase, but not change the case of any of the other letters?</p>
  <p>For example:</p>
  <ul>
  <li><code>&quot;this is a test&quot;</code> → <code>&quot;This is a test&quot;</code></li>
  <li><code>&quot;the Eiffel Tower&quot;</code> → <code>&quot;The Eiffel Tower&quot;</code></li>
  <li><code>&quot;/index.html&quot;</code> → <code>&quot;/index.html&quot;</code></li>
  </ul>