Pytaj o wprowadzenie w węźle

Przykłady kodu

1
0

nodejs żądają enter

let userInput = ask("What is your name?")
//user types: Joe
console.log(userInput) // prints Joe

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

function ask(message) {
  let input = prompt(message);
  return input;
}

Podobne strony

Podobne strony do przykłady

W innych językach

Ta strona jest w innych językach

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................