This code adds functions to an array :
var fArr = []
fArr.push(test())
fArr.push(test())
function test(){
console.log('here')
}
However the function test() is invoked each time its added to array fArr
Can the function test() be added to the array fArr without invoking the function ?
I'm attempting to populate the array fArr with functions and then iterate over fArr and invoke the functions, not invoke the functions as they are being added to fArr which is current behavior.
fiddle : http://jsfiddle.net/3fd83oe1/