jquery function inside a function

Viewed 51651

Is it possible to have a function within another function like so?

function foo() {

    // do something

    function bar() {

        // do something

    }

    bar();

}

foo();
3 Answers
Related