title: Pass string to jQuery selector
body: <p>I have several classes with the names like so:</p>
  
  <ul>
  <li>.x-string</li>
  <li>.y-string</li>
  <li>.z-string</li>
  </ul>
  
  <p>A dynamic part and a constant one. I have made an array containing the dynamic parts (x, y, z).</p>
  
  <p>I want to loop through the array, take each name, concatenate "-string" to the end of it, and pass it as a class to be selected in jQuery.</p>
  
  <p>Sort of like:</p>
  
  <pre><code>$(classList).each(function () {
      let newClass = '.' + this + '-string'
      $('.this-string')...
  }
  </code></pre>
  
  <p>Is this possible and how would I go about it? Cheers.</p>