Skip to content

Instantly share code, notes, and snippets.

@sinri
Created July 13, 2018 02:34
Show Gist options
  • Save sinri/4d1f6b321a92834d4a1b7838636a5a26 to your computer and use it in GitHub Desktop.
Save sinri/4d1f6b321a92834d4a1b7838636a5a26 to your computer and use it in GitHub Desktop.
アロー関数式のひとつのノート ref: https://qiita.com/sinri/items/82aad3bbcee9309aab73
function Yige(x){
this.instance={
init:function(x){
this.x=x;
}
};
this.instance.init(x);
return this;
}
console.log(new Yige(2).instance.x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment