const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout
});
readline.question('who are you: ', name => {
console.log(`hello, hi there ${name}`);
readline.close();
})
//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}`);
// Importing the module
const readline = require("readline-sync");
// Enter the number
let a = Number(readline.question());
let number = [];
for (let i = 0; i < a; ++i) {
number.push(Number(readline.question()));
}
console.log(number);