Skip to content

Instantly share code, notes, and snippets.

@MACSkeptic
Created August 15, 2013 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MACSkeptic/6239657 to your computer and use it in GitHub Desktop.
Save MACSkeptic/6239657 to your computer and use it in GitHub Desktop.
(function () {
"use strict";
function x() { console.log(this); }
x();
}())
// -> undefined
(function () {
function x() { console.log(this); }
x();
}())
// -> Window {top: Window, window: Window, location: Location, external: Object, chrome: Object…}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment