JavaScript - How do I call a function inside of a function?
- by CraigWl
I have the following JavaScript code:
function myParentFunc() {
function myChildFunc() {
...
}
...
}
// outside of myParentFunc, how do I call myChildFunc() ?
myChildFunc(); // doesn't work
How do I call myChildFunc() from outside of myParentFunc()?