Can anyone please help me in this? I have declared a function inside a function and now want to call only that function.
For example:
function hello(){
alert("Hello");
function insideHello(){
alert("insideHello");
}
}
I just want to call the insideHello
function.
I know one way is to call (new hello()).insideHello();
by declaring this.insideHello = function
. I don't want to use new
every time because I am using this in canvas scenario.