Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const readline = require('readline');
- const rl = readline.createInterface({
- input: process.stdin,
- output: process.stdout
- });
- rl.question('What do you think of Node.js? ', (answer) => {
- // TODO: Log the answer in a database
- console.log('Thank you for your valuable feedback: ${answer}');
- rl.close();
- });
- console.log('came here');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement