Answers for "input em nodejs"

5

input in node js

const readline = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});
 
readline.question('who are you: ', name => {
	console.log(`hello, hi there ${name}`);
	readline.close();
})
Posted by: Guest on February-18-2021
-2

user input node javascript

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 December-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language