Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

can you call a function within a function javascript

function outer() { 
    function inner() {
        console.log("hi");
    }
    return {
        inner: inner
    };
}
var foo = outer();
foo.inner();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #function #function #javascript
ADD COMMENT
Topic
Name
2+1 =