Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript getting input from console

const readline = require("readline");

rl.question("What is your name? ", function (answer) {
  console.log(`Oh, so your name is ${answer}`);
});
Source by sebhastian.com #
 
PREVIOUS NEXT
Tagged: #javascript #input #console
ADD COMMENT
Topic
Name
1+5 =