Created
July 20, 2022 08:27
-
-
Save kurt-liao/a2ee8997058b5a061abc91abdbe56ff6 to your computer and use it in GitHub Desktop.
es2015 class
This file contains hidden or 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 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