function myfunc(arg1){
console.log(arguments[0]);
function func2(){
let a=10;
console.log(a);
}
return func2();
}
var ans = myfunc(20);
console.log(typeof ans);
in this output of type of ans is undefined …why it is not a function?
and in which line is func2() called here?