Just trying to clear some misconceptions...
function outer(){
    function inner(){
    }
}
- Does a function being a member of a particular object decides it's contextual this ? 
- Like, is it the reason that outer function is member of window object therefore the contextual this of outer function refers to window object ? 
- If yes then whos member is the inner function ? 
- Is inner member of outer function's object ? 
- And why the inner function's contextual this is referring to the window object ? 
- Is any function(global or nested) invoked without new operator will have contextual this referring to window object ? 
 
     
    