Skip to content

Instantly share code, notes, and snippets.

@JunPyoL22
Created March 6, 2018 16:09
Show Gist options
  • Save JunPyoL22/ef8583fbe9f7b70f3de8b25bb03f07cb to your computer and use it in GitHub Desktop.
Save JunPyoL22/ef8583fbe9f7b70f3de8b25bb03f07cb to your computer and use it in GitHub Desktop.
function thisAtfunctionInvoke(){
console.log(this===window);
this.number = 20
}
thisAtFunctionInvoke(); // >> true
console.log(window.number===20); // >> true
console.log(this === window); // >> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment