Skip to content
Reading Console Input using Node.js
Profile icon
vedprad1

Reading Console Input using Node.js

Is it possible to take in Console Input using Node.js? My way is not working.
The Repl

You are viewing a single comment. View All
Profile icon
Pythonier

@vedprad1
Weird, try requiring readline-sync instead. ex:

const readline = require("readline-sync"); var name = readline.question("What is your name? ");