cara mengambil input dari nodej pengguna

const prompt = require("prompt-sync")();

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

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