Javascript-Funktion mit Prototyp innerhalb des Prototyps der übergeordneten Funktion

Ist das überhaupt möglich?

function foo() {
    // do stuff
}
foo.prototype = {
    // stuff...
    bar: function() {
        // do some things with this, where this refers to foo
    },
    bar.prototype: {
        // set some definitions for bar to work with.
        // Where does "this" go and what does it refer to?
    }
}

Antworten auf die Frage(1)

Ihre Antwort auf die Frage