Najlepší spôsob, ako kontrolovať vstup užívateľa nodejs
Príklady kódu
2
0
získanie vstupu používateľa v uzle 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}`);