...
Solution Review: Callback Functions
This lesson will explain the solution to the problem in the previous lesson.
function feelings(val, func) { console.log("I am " + val + ", " + func(2));}var laughing = function(num) { var laugh = ""; for (var i = 0; i < num; i++) { laugh = laugh + "ha"; } return laugh;};function display() { feelings("happy", laughing);}display()
This is a very simple question testing your basic understanding of callback ...