>>4257
>To be fair I had this problem too when I was a noobfag. I wanted to create new variables using a for loop but didn't know how the fuck to do that. Now I know you can't and must use an array.
You're still a noob. Learn how namespaces work, idiot.
>>3717
Sure, OP. Other fags here don't seem to know how to answer basic questions because they're actually stumped as to how to perfectly emulate your code. It's easy, actually.
for (var x = 0; x <= 3; x++) window['a' + x] = document.getElementsByTagName("audio")[x];
After that code runs, you can then reference a0, a1, a2, and a3 as normal.
You might want to consider making a namespace of their own to go into though, that way they won't just be tossed into the same group as everything else.
>>3720
Get off this board, idiot. Don't answer questions if you don't know the answer.