JS How to include a variable in a path?
<p>The following variable contains a string that is a path to an image.</p>

<pre><code>iconBlue.image = 'http://www.site.com/icon1.jpg';
</code></pre>

<p>How can include a variable in this path? Let me explain more detailed. Lets say there are many icons in a folder icon1.jpg icon2.jpg etc. I have a variable named iconspec that depending on its value (1 or 2 or 3 etc) points to the icon I must use. </p>

<p>How can i include variable iconspec  in the path?</p>

<pre><code>iconBlue.image='http://www.site.com/icon"iconspec".jpg
</code></pre>

<p>Something like this i guess but with correct syntax.</p>
