I would like to join a js variable together with another to create another variable name... so it would be look like;
for (i=1;i<=2;i++){ var marker =
You can use the JavaScript String concat() Method,
var str1 = "Hello "; var str2 = "world!"; var res = str1.concat(str2); //will return "Hello world!"
Its syntax is:
string.concat(string1, string2, ..., stringX)