console.log(first([7,9,0,-2]));
console.log(first('d',3));
console.log(first([7, 9, 0, -2],3));
console.log(first([3,7, 9, 0, -2],6));
console.log(first([7, 9, 0, -2],-3));
function first(Arr)
{
for(var i =0 ; i<1; i++)
{
var o = Arr[i];
}
return o;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: