Created
April 30, 2016 16:27
-
-
Save sgimeno/f57665a9e96cc4c59d5c1a19f173c169 to your computer and use it in GitHub Desktop.
Prompt a question with Node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const readline = require('readline'); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
rl.question('Enter the problem input: ', (input) => { | |
console.log(`Input: ${input}`); | |
rl.close(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment