How to access child array element


#1

How to access child array element

for example:

var myArray2 = [[45, 'string', '46', false], [58, "robart", false, 'john'], [89, "string", 82, true]];

From above code i need to access second child 4th element.



#2

You have a list of lists. To access a list,

myArray[x]

To access an element of that list,

myArray[x][y]

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.