2023-02-26 01:30
This commit is contained in:
12
console-io/console-io.js
Normal file
12
console-io/console-io.js
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
const readline = require('readline').createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout
|
||||
});
|
||||
|
||||
readline.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}`);
|
||||
|
||||
readline.close();
|
||||
});
|
||||
Reference in New Issue
Block a user