Skip to content

Instantly share code, notes, and snippets.

@JunPyoL22
Last active March 8, 2018 15:21
Show Gist options
  • Save JunPyoL22/bc762e1a2b07741f2cfeef8b03338270 to your computer and use it in GitHub Desktop.
Save JunPyoL22/bc762e1a2b07741f2cfeef8b03338270 to your computer and use it in GitHub Desktop.
function thisAtConstructorInvoke() {
console.log(this instanceof thisAtConstructorInvoke); // >> true
this.property = "default value";
}
var instance = new thisAtConstructorInvoke();
instance.property; // >> default value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment