SyntaxFix
Write A Post
Hire A Developer
Questions
In plain JavaScript, simply use response = readline() after printing a prompt.
response = readline()
In Node.js, you'll need to use the readline module: const readline = require('readline')
const readline = require('readline')