I took time to read about accessing properties of objects, but could not find out a way to solve my problems.
- Let us say I have 10 arrays, of name arr1, arr2, arr3 ... arr10. How would i access the length of all the arrays without using the
eval()? I did it with aforloop, andeval("arr" + i + ".length"). I knowarr1["length"]works, but how to access the length of all the arrays? using a loop? - How would I access functions like
split(),splice()orpop()... of all this arrays? - Let us say
arr1 = ["tab1", "tab2"], wheretab1, tab2are defined later as arrays. If I wish to access the length oftab1fromarr1how should I do? And if i also want to access the defined functions on arrays?