Am I right in my understanding of this code. We call the function with an anonymous function. It firstly console logs the function ( as in the function structure, it does not run the function. It then runs the function when it comes across a()
;
Is this correct?
var runIt = function(a) {
console.log(a);
a();
};
runIt(function({
var b = " Now";
console.log("Running" + b);
});