function creategreet(greeting){
function f2(name){
console.log(greeting,name);
}
return f2;
}
let g1=creategreet(‘good morning’);
console.log(typeof g1);
in this code ’ good morning ’ string passes to the function but why the typeof of this function is func.
and please tell about retrun f2 mean.