Created
July 30, 2018 18:06
-
-
Save kristyburge/2e7ed7aecb2ab8393c1203c2445b8ea9 to your computer and use it in GitHub Desktop.
Strict mode and This
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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