Skip to content

Instantly share code, notes, and snippets.

@grant
Last active August 3, 2019 04:02
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/8247702a0e0ba206a78059186c4460ca to your computer and use it in GitHub Desktop.
Save grant/8247702a0e0ba206a78059186c4460ca to your computer and use it in GitHub Desktop.
Run Node 12 index.js
const Greeter = require('./greeter');
exports.function = (req, res) => {
const g = new Greeter();
// Can't access private fields
// greet.#name = 'NewName';
res.send(g.sayHello());
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment