Skip to content

Instantly share code, notes, and snippets.

@kurt-liao
Created July 20, 2022 08:27
Show Gist options
  • Save kurt-liao/a2ee8997058b5a061abc91abdbe56ff6 to your computer and use it in GitHub Desktop.
Save kurt-liao/a2ee8997058b5a061abc91abdbe56ff6 to your computer and use it in GitHub Desktop.
es2015 class
class Person {
constructor() {
this.name = 'Kurt'
}
getName() {
return this.name
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment