Try this one
function multiply(val1,val2,displayResult)
{
// find result of multiplication
let result = val1 * val2;
// display result
displayResult(result);
}
function display(result)
{
console.log("Result: " + result);
}
// call the function
multiply(2,4,display);