📌  相关文章
📜  如何从用户 nodejs 获取输入 - Javascript 代码示例

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

代码示例1
const prompt = require("prompt-sync")();

const input = prompt("What is your name? ");

console.log(`Oh, so your name is ${input}`);