Last active
August 3, 2019 04:02
-
-
Save grant/8247702a0e0ba206a78059186c4460ca to your computer and use it in GitHub Desktop.
Run Node 12 index.js
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
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