Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to take input from user nodejs

const prompt = require("prompt-sync")();

const input = prompt("What is your name? ");

console.log(`Oh, so your name is ${input}`);
Source by sebhastian.com #
 
PREVIOUS NEXT
Tagged: #input #user #nodejs
ADD COMMENT
Topic
Name
6+8 =