function declaration vs function expression
by Prasad
JavaScript
function abc() {
function a() {
return 3;
}
return a();
function a() {
return 5;
}
return a(); // even after return this function will get executed
}
alert(abc()); //5
by Prasad
function abc() {
function a() {
return 3;
}
return a();
function a() {
return 5;
}
return a(); // even after return this function will get executed
}
alert(abc()); //5