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

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
Answered by Pythonier [earned 5 cycles]
View Answer
Profile icon

I know it's an old thread, but maybe you can use :

let answerText = prompt("Your question goes here"); let answerBool = confirm("Yes/No question goes here);"

It works nice with Repl console.

Source: W3Schools Js Popups