Test for myArray[2]

Tested myArray[2] with console.log, working properly