In a NodeJS program, I want to accept input from console. I chose readline to do this. The code can be simplified as follow:
readline