Skip to content

Instantly share code, notes, and snippets.

@kristyburge
Created July 30, 2018 18:06
Show Gist options
  • Save kristyburge/2e7ed7aecb2ab8393c1203c2445b8ea9 to your computer and use it in GitHub Desktop.
Save kristyburge/2e7ed7aecb2ab8393c1203c2445b8ea9 to your computer and use it in GitHub Desktop.
Strict mode and This
function test() {
'use strict';
return this;
}
console.log( test() );
// returns undefined, not the Window object … interesting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment