Reading Console Input using Node.js
vedprad1 (732)

Reading Console Input using Node.js

Is it possible to take in Console Input using Node.js? My way is not working.
The Repl

You are viewing a single comment. View All
Pythonier (302)

@vedprad1 Is this what you are looking for:

var rl = require('readline-sync');
rl.question("What do you think of node.js? ")
console.log("Thank you for your valuable feedback.");