...

/

Solution Review: Callback Functions

Solution Review: Callback Functions

This lesson will explain the solution to the problem in the previous lesson.

We'll cover the following...

Solution #

Press + to interact
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()

Explanation #

This is a very simple question testing your basic understanding of ...