Last active
March 6, 2018 16:07
-
-
Save JunPyoL22/dca87c24284ee8b048ae5b4d3afd8d04 to your computer and use it in GitHub Desktop.
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 thisAtfunctionInvokeInStrictMode(){ | |
'use strict'; | |
console.log(this===undefined); | |
this.number = 20 | |
} | |
thisAtfunctionInvokeInStrictMode(); // >> true | |
console.log(window.number===20); // >> false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment