fork download
  1. var window = this;
  2.  
  3. function testThis() {
  4. return this === window;
  5. }
  6.  
  7. testThis(); // true
  8.  
  9. var obj = {
  10. testThis: function () {
  11. return this === obj;
  12. }
  13. };
  14.  
  15. obj.testThis(); // true
Success #stdin #stdout 0.02s 4980KB
stdin
Standard input is empty
stdout
Standard output is empty