📜  4.8.使用 readline-sync 输入¶ - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:07.384000             🧑  作者: Mango

代码示例1
/*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: ");