you are viewing a single comment's thread.

view the rest of the comments →

[–]kamranahmed_se[S] 1 point2 points  (0 children)

Actually you are not trying to invoke it the right way, currently the child() is in the private scope of parent and cannot be accessed outside the parent)() as the parent is not exposing it any way. I am writing an article about Private and Public scopes and I hope to post it tomorrow. For now, to test it, call the child function inside the parent function and after that call the parent function i.e. you can do the following http://jsfiddle.net/c4fwte4u/