Skip to content

Instantly share code, notes, and snippets.



Created May 7, 2017
What would you like to do?
var cat = "Alphonse";
// The variable cat is actually attached to the global window object :
console.log( === cat); // Prints true
// "this" in the global context has the value of the global window object
console.log(this); // Prints the window object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment