how to get first element from the object in an array code example Example: javascript get first element of array console.log(ary[0]);