Answers for "javascript getting input from console"

1

input javascript console

const input = prompt("What's your name?"); //optional params
console.log(input);
Posted by: Guest on September-04-2021
0

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}`);
});
Posted by: Guest on December-25-2021

Code answers related to "javascript getting input from console"

Code answers related to "Javascript"

Browse Popular Code Answers by Language