I have the following problem: I have to create Veiables like such:
var qrcode_1 = my_CreateQRcode(document.getElementById("qrcode_1"));
var qrcode_2 = my_CreateQRcode(document.getElementById("qrcode_2"));
var qrcode_3 = my_CreateQRcode(document.getElementById("qrcode_3"));
.....
The number of the variables can bie fom 1 to 60.. ist it possible to create these varibles dynamically depending on the amount of actually needed variables.. of have I to degine 60 variables in the code?
qrcodevariables but you try to useqrcode_60? That would throw an error. And if you don't know how many there are, how would you know which identifiers to use - you won't be able to determine if there are 5 or 50 of them, if you merely have an unknown amount of variables.