//Why does this not work?

if ( myArray [ i ] > myArray [ myArray. length - 1 ] ) { //Why does this not work?