Nejlepší způsob, jak kontrolovat vstup uživatele nodejs
Příklady kódu
2
0
získání vstupu uživatele v node js
//Make sure you have Node and NPM installed
//Run "npm install prompt-sync" in the terminal
const prompt = require('prompt-sync')();
const name = prompt('What is your name?');
console.log(`Hey there ${name}`);