how to get the first index of an array in javascript code example
Example 1: javascript get first element of array
alert($(ary).first());
Example 2: javascript get first element of array
console.log(ary[0]);
Example 3: javascript get first element of array
alert(ary[0])