let num = prompt("Enter a number: ");
num = parseInt(num);
ReferenceError: prompt is not defined
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('Enter your input: ', (answer) => {
console.log(`Your input: ${answer}`);
rl.close();
});