how to access a function inside other function javascript code example
Example: does a function inside a function need to be called?
function outer() {
// when you define it this way, the inner function will be accessible only from
// inside the outer function
function inner() {
alert("hi");
}
inner(); // call it
}