I have simple requirement, I need abc
available in hello
function but getting undefined
I know below code giving me undefined
and It should give
function hello(){
console.log("printing abc ",abc);
}
function test(){
var abc = "hello";
hello();
}
but is anything there that I can make abc
available in hello
function without passing manually, I am doing this for napajs
execute
function where i have to call nested function and I do not want to pass variable in hierarchy .