var A = [ 'dog', 'cat', function () { return 2 * 2 } ] ;
document.body.innerHTML = A[2]
Return this: function () {return 2 * 2} Obviously I want you to return 4 , not the syntax of a function Or is it that you can not put a function in an array?