# revisualize/FreeCodeCamp - Nesting For Loops.js Last active May 25, 2017
 An explanation of how to access elements in an array: You directly access a value in an array by specifying which index you want: ```var myArr = [1, 2, 3] myArr // this is 1 myArr // this is 2 myArr // this is 3``` The values in an array can be anything, including other arrays, so: ```var myArr = [[1, 2, 3], [4, 5, 6]] myArr // this is [1, 2, 3] myArr // this is [4, 5, 6]``` You can access the values in those arrays the same way: ```var myArr = [[1, 2, 3], [4, 5, 6]] myArr // array at index 0, value in that array at index 0 - this is 1 myArr // array at index 0, value in that array at index 1 - this is 2 myArr // array at index 0, value in that array at index 2 - this is 3 myArr // array at index 1, value in that array at index 0 - this is 4 myArr // array at index 1, value in that array at index 1 - this is 5 myArr // array at index 1, value in that array at index 2 - this is 6``` You can do this to silly depths: ```var myArr = [[[[[]]]]] myArr // this is [[[[]]]] myArr // this is [[[]]] myArr // this is [[]] myArr // this is [] myArr // this is  myArr // this is 0```