Skip to content

Instantly share code, notes, and snippets.

@Khuzha
Created August 19, 2018 11:58
Show Gist options
  • Save Khuzha/1241c1405e36105076ff1db3f5ab9209 to your computer and use it in GitHub Desktop.
Save Khuzha/1241c1405e36105076ff1db3f5ab9209 to your computer and use it in GitHub Desktop.
const prompt = require('prompt-sync')();
let name = [];
for (let i = 0; name[i] !== undefined; i++) {
name[i] = prompt('Введите имя');
}
console.log(name);
@Khuzha
Copy link
Author

Khuzha commented Aug 19, 2018

Консоль:

oneuser@OnePC:~/MyProjects/js/19.08$ node 2index.js
[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment