Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
const r1 = require('readline');
const r = r1.createInterface({
input: process.stdin,
output: process.stdout
});
/*
r.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}`);*/
r.question("Enter a number\n");
r.close();
/*r.question("Enter a number\n");
r.question("Ente another number\n");*/
//var op = r1.question("Choose an operation (+,-,/,*)\n");
//var result;