jQuery string + variable in var
<p>I have a very simple piece of code:</p>

<pre><code>var psImg_path;
psImBG_path = psImgBG_split[0] + "overlayimages";

alert(psImgBG_path);
</code></pre>

<p>But it returns 'undefined'.
The weird thing is, is that if I alert psImgBG_split[0], it returns 'images'.</p>