Is it possible to have a function within another function like so?
function foo() {
// do something
function bar() {
// do something
}
bar();
}
foo();
Is it possible to have a function within another function like so?
function foo() {
// do something
function bar() {
// do something
}
bar();
}
foo();