well i'm building some javascript code and im just curious about benchmark of passing function in argument vs direct access
I got following functions
testIt(function(){
alert('Hi test');
});
function testIt(func){
func();
};
function testIt2(){
alert('Hi test');
};
And now how about testIt vs testIt2? Would testIt be slower?