how to return the first elemnt in an arry js? code example
Example 1: javascript get first element of array
console.log(ary[0]);
Example 2: javascript get first element of array
alert(ary[0])
console.log(ary[0]);
alert(ary[0])