const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('What do you think of Node.js? ', (answer) => {
// здесь что-то делайте с полученной строкой answer
console.log(`Thank you for your valuable feedback: ${answer}`);
rl.close();
});