showing results for - "asking questions javascript in console"
Camila
03 May 2017
1var readline = require('readline');
2
3var rl = readline.createInterface({
4  input: process.stdin,
5  output: process.stdout
6});
7
8rl.question("What do you think of node.js? ", function(answer) {
9  console.log("Thank you for your valuable feedback:", answer);
10
11  rl.close();
12});
13
similar questions
queries leading to this page
asking questions javascript in console