javascript - Querying for non existent property doesn't always throw error -
why when executing piece of code, checking thisthrowserror throws error, querying non existent property on prototype object or on this context doesn't?
function test() { if(this.somevar){} if(test.prototype.somevar){} if(thisthrowserror){} } var test = new test();
Comments
Post a Comment