Skip to content

Instantly share code, notes, and snippets.

@JunPyoL22
Last active March 6, 2018 16:07
Show Gist options
  • Save JunPyoL22/dca87c24284ee8b048ae5b4d3afd8d04 to your computer and use it in GitHub Desktop.
Save JunPyoL22/dca87c24284ee8b048ae5b4d3afd8d04 to your computer and use it in GitHub Desktop.
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