-
-
Save jaxatax/41583b000ae0e28f7acfef16bb4917ab to your computer and use it in GitHub Desktop.
Command-Line User Input in JavaScript (node.js)
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
// Code Snippet by Timmy Chen | |
// REFERENCE: https://repl.it/@timmy_i_chen/readline-sync-example-node | |
const rs = require('readline-sync'); | |
const x = rs.question('enter thing: '); | |
console.log('wow you entered ' + x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment