Created
August 3, 2019 03:23
-
-
Save grant/5665c6c1fcdfc278adcac91d2d39c31d to your computer and use it in GitHub Desktop.
Run Node 12 greeter
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 Greeter { | |
#name = 'Functions Framework'; | |
get name() { | |
return this.#name; | |
} | |
set name(name) { | |
this.#name = name; | |
} | |
sayHello() { | |
return `Hello, ${this.#name}`; | |
} | |
} | |
module.exports = Greeter; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment