javascript print first item in array code example Example: javascript get first element of array alert(ary[0])