I got the follow code:
var image1 = 'aaa.jpg';
var image2 = 'bbb.jpg';
var image3 = 'ccc.jpg';
var image4 = 'ddd.jpg'; // all dynmically created
current = 1; // dynamically changing value, in this case between 1 and 4
What I need now is to alert alert(image1);
but on this way: alert(image + current);
Is it even possible this way? I hope I explained clearly what I need.