Answers for "javascript read input from terminal"

0

javascript read input from terminal

const readline = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
 
readline.question('Who are you?', name => {
  console.log(`Hey there ${name}!`);
  readline.close();
});
Posted by: Guest on February-13-2021

Code answers related to "javascript read input from terminal"

Code answers related to "Javascript"

Browse Popular Code Answers by Language