select elements in array from the first javascript code example Example: javascript get first element of array alert(ary[0])