We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions like prompt() and readLine() aren't defined and their packages cannot be imported. Is there a way to read input using JavaScript?
The text was updated successfully, but these errors were encountered:
You need to use the NodeJS ways of getting the stdin like process.stdin
stdin
process.stdin
Sorry, something went wrong.
Thanks. Is there any way it can be used in a function that works in a similar way to python's input? Something like "const n = input()"
There are multiple ways to read from stdin in NodeJS. You can use ones that don't require external NPM modules.
No branches or pull requests
Functions like prompt() and readLine() aren't defined and their packages cannot be imported. Is there a way to read input using JavaScript?
The text was updated successfully, but these errors were encountered: