title: How to add counter variable to variable name?
body: <p>Pretty straightforward. This is my very inefficient code:</p>
  
  <pre><code>var slider1 = new Slider("#survey1", {
      precision: 2,
      value: 5
  })
  var slider2 = new Slider("#survey2", {
      precision: 2,
      value: 5
  })
  var slider3 = new Slider("#survey3", {
      precision: 2,
      value: 5
  })
  var slider4 = new Slider("#survey4", {
      precision: 2,
      value: 5
  })
  var slider5 = new Slider("#survey5", {
      precision: 2,
      value: 5
  })
  </code></pre>
  
  <p>I'm sure this can be made way more efficiently, It should go up to "#survey13" but I skipped the rest to save space. Maybe a for loop? How could I add the counter to the name of the variable and referenced id?</p>