Skip to content

Instantly share code, notes, and snippets.

@shikumiya-hata
Created October 21, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikumiya-hata/7a35708b7d53a63521f977baf8eb04bf to your computer and use it in GitHub Desktop.
Save shikumiya-hata/7a35708b7d53a63521f977baf8eb04bf to your computer and use it in GitHub Desktop.
class Foo {
constructor() {
console.log('Foo#constructor()')
}
hoge() {
console.log('Foo#hoge()')
return true
}
}
this.foo = Foo // クラスをglobal領域にセットする
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment