acesss first element in a list java script code example Example: javascript get first element of array console.log(ary[0]);