Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reply nodejs terminal

process.stdout.write("What's your name?
");

process.stdin.on('readable', () => {
  const userInput = process.stdin.read();
  process.stdout.write(`Your Input was: ${userInput}`);
});
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #reply #nodejs #terminal
ADD COMMENT
Topic
Name
8+1 =