4.8. Input with readline-sync¶ code example
Example: 4.8. Input with readline-sync¶
/*Gathering input from the user requires the following setup:*/
const input = require('readline-sync');
let info = input.question("Question text... ");
// example //
const input = require('readline-sync');
let name = input.question("Enter your name: ");