Skip to content

Instantly share code, notes, and snippets.

@grant
Created August 3, 2019 03:23
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 grant/5665c6c1fcdfc278adcac91d2d39c31d to your computer and use it in GitHub Desktop.
Save grant/5665c6c1fcdfc278adcac91d2d39c31d to your computer and use it in GitHub Desktop.
Run Node 12 greeter
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