parent = function() { console.log(this); child = function() { console.log(this); } child(); } parent();