Created
October 21, 2020 09:51
-
-
Save shikumiya-hata/fde19c19c14af94d52417ebc631eb2b0 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
class Foo { | |
constructor() { | |
console.log('Foo#constructor()') | |
} | |
hoge() { | |
console.log('Foo#hoge()') | |
return true | |
} | |
} | |
function foo() { return new Foo() } // クラスのインスタンスを生成して取得する |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment