title: JavaScript increment images
body: <p>I'm trying to use JavaScript to list images 01-40 in order automatically.</p>
  
  <p>Like this:</p>
  
  <pre><code>&lt;img src="01.jpg" /&gt;
  &lt;img src="02.jpg" /&gt;
  &lt;img src="03.jpg" /&gt;
  &lt;img src="04.jpg" /&gt;
  &lt;img src="05.jpg" /&gt;
  ...
  </code></pre>
  
  <p>I don't want to write each img src manually, as I want to use this on multiple pages</p>
  
  <p>I'd like the image starting and ending number to be variables that I can edit easily.</p>