title: Using jQuery to highlight a character of a string on a webpage
body: <p>I want to use jQuery to highlight a character of a string on a webpage at an index of some value. The value is variable &ndash; one time it will be at the index of 2, and the next time it will be at the index of 3.</p>
  
  <pre><code>var copy = "I am learning how to program.";
  $('#letter').text(copy);
  //code to highlight
  </code></pre>
  
  <p>Output example:</p>
  
  <p><img src="https://i.stack.imgur.com/CDSfA.png" alt="Output example "></p>