// Step 1: Import the 'readline' module to read user input
const readline = require('readline');
// Step 2: Create an interface to read from the console
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
// Step 3: Prompt the user for input using the 'question' method
rl.question('Enter something: ', (userInput) => {
// Step 4: Process the user input (You can perform any desired operations here)
console.log(`You entered: ${userInput}`);
// Step 5: Close the readline interface
rl.close();
});