im practicing javascript and i have arrays (more than 10) which have strings in it var p = ["one","two","three","four"]; var q = [//somthing here]
and another array which is created by a function which select n store some array names for further actions
var m = ["p","q","r","s"];
how can i use element of array m as the varable/array name like:
<button onclick="testArrays(dest, m[0])">desti</button>
must have to work like this
<button onclick="testArrays(dest, p)">desti</button>
all i want to say that how can i use m[0] as a variable
im not using objects