first element of array js

JavaScript
alert($(ary).first());arr[0]var ary = ['first', 'second', 'third', 'fourth', 'fifth'];
Source

Also in JavaScript: