I have multiple instances of "batman" and need to call a nested function within "batman", from! another function that is outside of "batman".
Something like this:
var a = new batman();
var b = new batman();
var c = new batman();
robin();
function batman(){
    function hello(){
        console.log("hello world!");
    }
}
function robin(){
    a.hello();
}I get the error: a .hello is not a function.
what am i doing wrong? thanks in advance! :)
 
     
     
    