Ask coding questions

← Back to all posts
Support for the 'readline' module in node.js
TheCoiledViper

For a project, I'm trying to use the readline module to scan user inputs, but every time there seems to be an error. I even copied a code snippet from 'node.readthedocs.io' (https://repl.it/@TheCoiledViper/Nodejs-Readline-Module) , but it still brought an error. On other node.js online editors like jdoodle, the code seems runs without errors.

Voters
MICHELEHESKIN
Vandesm14
TheCoiledViper
Comments
hotnewtop
RiZeFrostbite

vanta.js

JoshuaKing1

should help the problem. Running it on this compiler is a bit different. It will first install a package which will allow it to get users input. Hope it helps! (check it answered if it works)