JavaScript - How do I call a function inside of a function?

Posted by CraigWl on Stack Overflow See other posts from Stack Overflow or by CraigWl
Published on 2010-05-17T16:16:33Z Indexed on 2010/05/17 16:21 UTC
Read the original article Hit count: 92

Filed under:
|

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()?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about web-development