I am making a simple text adventure using javascript and I need a way to make the player be able to write 1, 2, 3 or 4 when asked in order to select the corresponding choices. How do I do this? readline()
and console.read()
don't work.
I am not using a website. I need it in the console.