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;
}
// 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);