lib/Pass a Function as Parameter.js
// passing function greet() as a parameter
passing function greet() as a parameter
passing function greet () as a parameter
function name(user, func)
{
    const message = func();
    console.log(`${message} ${user}`);
}
function name ( user , func ) { const message = func ( ) ; console . log ( ` ${ message } ${ user } ` ) ; }
passing function greet() as a parameter
passing function greet () as a parameter
// accessing passed function