Why does this JavaScript example point to the global object (Window)?

Posted by user353949 on Stack Overflow See other posts from Stack Overflow or by user353949
Published on 2010-06-01T17:18:24Z Indexed on 2010/06/01 17:23 UTC
Read the original article Hit count: 92

Filed under:
function F() {
    function C() { 
        return this;
    } 
    return C();
} 
var o = new F();

© Stack Overflow or respective owner

Related posts about JavaScript